1 2002-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
4 `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
7 2002-12-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
9 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
11 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
13 * mule-charset.c (charset_lookup_description_1): Use
14 `NUM_LEADING_BYTES' in UTF-2000.
16 2002-12-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
18 * char-ucs.h (GC_CHARSETP): Deleted.
20 2002-12-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
22 * char-ucs.h (MAX_CHAR_GT): Updated.
24 2002-12-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
26 * text-coding.c: Sync with XEmacs 21.4.10.
28 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
30 * mule-charset.c (Vcharset_china3_jef): Deleted.
31 (Qchina3_jef): Deleted.
32 (syms_of_mule_charset): Don't define `china3-jef'.
33 (complex_vars_of_mule_charset): Likewise.
35 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
36 (MIN_CHAR_CHINA3_JEF): Comment out.
37 (MAX_CHAR_CHINA3_JEF): Comment out.
39 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
41 * mule-charset.c (Vcharset_ucs_gb): New variable.
42 (Qucs_gb): New variable.
43 (syms_of_mule_charset): Add new symbol `ucs-gb'.
44 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
46 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
48 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
50 * mule-charset.c (charset_code_point): if a coded-charset has a
51 final-byte, don't inherit the builtin range of the mother CCS.
53 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
55 * mule-charset.c (charset_code_point): Fix problem about
58 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
60 * mule-charset.c (decode_builtin_char): Reorganized.
62 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
64 * text-coding.c (char_encode_as_entity_reference): Modify for
66 (char_encode_shift_jis): Likewise.
67 (char_encode_big5): Likewise.
68 (char_encode_utf8): Likewise.
69 (char_encode_iso2022): Likewise.
71 * mule-charset.c (charset_code_point): Add new argument
73 (Fencode_char): Add new optional argument `defined_only'.
75 * chartab.c (put_char_table): Modify for `charset_code_point'.
77 * char-ucs.h (charset_code_point): Add new argument
79 (encode_char_1): Modify for `charset_code_point'.
81 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
83 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
84 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
86 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
88 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
89 (Qjis_x0208): Likewise.
90 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
91 XCHARSET_FINAL(charset).
92 (charset_code_point): Modify condition for final-byte based
94 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
95 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
96 in UTF-2000; specify `=jis-x0208' as the mother of
97 `japanese-jisx0208-1978', `japanese-jisx0208' and
98 `japanese-jisx0208-1990' in UTF-2000.
100 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
102 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
104 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
106 * text-coding.c (decode_coding_utf16): Support UTF-16.
107 (char_encode_utf16): Fixed.
109 2002-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
111 * text-coding.c (Qutf16): New variable in MULE.
112 (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
113 (Fcoding_system_type): Add `utf-16' in MULE.
114 (struct detection_state): Add a structure for utf16 in MULE.
115 (detect_coding_type): Setup st->utf16.mask in MULE.
116 (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
118 (reset_encoding_stream): Use `char_encode_utf16' and
119 `char_finish_utf16' for `CODESYS_UTF16' in MULE.
120 (detect_coding_utf16): New function [incomplete].
121 (decode_coding_utf16): New function [support only UCS-2].
122 (char_encode_utf16): New function.
123 (char_finish_utf16): New function.
124 (syms_of_file_coding): Add new symbol `utf-16'; setup
125 `coding_category_symbol[CODING_CATEGORY_UTF16]'.
127 * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
129 (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
130 (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
132 2002-10-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
134 * chartab.c (put_char_table): When a charset is specified as a
135 range in UTF-2000, don't support builtin characters.
137 2002-09-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
139 * mule-charset.c (decode_defined_char): Don't refer external
140 database if Qunbound or Qnil are found.
141 (Fsave_charset_mapping_table): Don't define it if
142 HAVE_CHISE_CLIENT is not defined.
143 (Freset_charset_mapping_table): New function.
144 (load_char_decoding_entry_maybe): Store Qnil if a character is not
145 found in external database.
146 (syms_of_mule_charset): Don't define `save-charset-mapping-table'
147 if HAVE_CHISE_CLIENT is not defined; add new builtin function
148 `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
150 2002-09-18 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
152 * text-coding.c (decode_coding_utf8): Check CCS is specified or
155 2002-08-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
157 * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
158 Q_lowercase, Q_uppercase in UTF-2000.
160 * chartab.c (get_char_table): Add special code for the standard
161 case table to use character attribute `->downcase' and
162 `->uppercase' for case operations in UTF-2000.
164 * casetab.c (Qflippedcase): New variable in UTF-2000.
165 (Q_lowercase): Likewise.
166 (Q_uppercase): Likewise.
167 (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
168 and `->uppercase' in UTF-2000.
169 (complex_vars_of_casetab): Assign attribute name `downcase' to
170 downcase and CANON table of Vstandard_case_table in UTF-2000;
171 assign attribute name `flippedcase' to upcase and EQV table of
172 Vstandard_case_table in UTF-2000.
174 2002-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
176 * text-coding.c (decode_add_er_char): Support isolated-chars.
177 (char_encode_as_entity_reference): Likewise.
179 2002-08-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
181 * emacs.c (Vutf_2000_lisp_directory): New variable.
182 (Vconfigure_utf_2000_lisp_directory): Likewise.
183 (complex_vars_of_emacs): Add new variable
184 `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
186 2002-08-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
188 * char-ucs.h (DECODE_CHAR): Delete special code for
189 `chinese-big5-1' and `chinese-big5-2'.
191 * mule-charset.c (Qbig5_1): New variable in UTF-2000.
193 (decode_defined_char): Support CONVERSION_BIG5_1 and
195 (decode_builtin_char): Likewise.
196 (charset_code_point): Likewise.
197 (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
198 'conversion in UTF-2000.
199 (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
200 (complex_vars_of_mule_charset): Define `chinese-big5-1' and
201 `chinese-big5-2' as children of `chinese-big5'.
203 * char-ucs.h (CONVERSION_BIG5_1): New macro.
204 (CONVERSION_BIG5_2): New macro.
206 2002-08-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
208 * text-coding.c (char_encode_big5): Support entity-reference.
210 2002-08-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
212 * text-coding.c (char_encode_as_entity_reference): New function.
213 (char_encode_utf8): Use `char_encode_as_entity_reference'.
215 2002-08-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
217 * text-coding.c (decode_coding_big5): Support entity-reference
220 2002-08-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * text-coding.c (allocate_coding_system): Initialize initial
223 charsets for CODESYS_UTF8.
224 (Fmake_coding_system): Accept charset-g0, charset-g1 and
225 charset-g2 for CODESYS_UTF8.
226 (decode_coding_utf8): Use charset-g0.
227 (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
228 to force variants to map to UCS.
230 2002-07-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
232 * text-coding.c (Qutf_8_mcs): New variable.
233 (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
234 (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
235 instead of `utf-8' in UTF-2000.
237 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
239 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
240 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
241 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
242 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
243 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
244 CONVERSION_96x96x96x96 are introduced.
245 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
246 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
247 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
249 * char-ucs.h (CONVERSION_94): New macro.
250 (CONVERSION_96): New macro.
251 (CONVERSION_94x94): New macro.
252 (CONVERSION_96x96): New macro.
253 (CONVERSION_94x94x94): New macro.
254 (CONVERSION_96x96x96): New macro.
255 (CONVERSION_94x94x94x60): New macro.
256 (CONVERSION_94x94x94x94): New macro.
257 (CONVERSION_96x96x96x96): New macro.
259 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
261 * chartab.c (Vcharacter_variant_table): Deleted.
262 (Fchar_variants): Use character-attribute `->ucs-variants' instead
263 of `Vcharacter_variant_table'.
264 (Fput_char_attribute): Likewise.
265 (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
266 (complex_vars_of_chartab): Likewise.
268 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
270 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
272 * fns.c (Qideographic_structure): New variable.
273 (Qkeyword_char): New variable.
274 (ids_format_unit): New function.
275 (Fideographic_structure_to_ids): New function.
276 (syms_of_fns): Add new symbols `ideographic-structure' and
277 `:char'; add new builtin function `ideographic-structure-to-ids'.
279 * data.c (Fchar_ref_p): New function.
280 (syms_of_data): Add new builtin function `char-ref-p'.
282 * chartab.h: Add an EXFUN for `Ffind_char'.
284 2002-07-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
286 * text-coding.c (Vcharacter_composition_table): Deleted.
287 (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
290 * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
292 (Vcharacter_composition_table): Deleted.
293 (Fget_composite_char): Use the implementation for external-DB
294 support in every UTF-2000.
295 (Fput_char_attribute): Likewise.
296 (char_attribute_system_db_file): Don't define if external-DB
297 feature is not available.
298 (Fsave_char_attribute_table): Likewise.
299 (Fmount_char_attribute_table): Likewise.
300 (Fclose_char_attribute_table): Likewise.
301 (Freset_char_attribute_table): Likewise.
302 (Fload_char_attribute_table): Likewise.
303 (syms_of_chartab): Don't define `save-char-attribute-table',
304 `mount-char-attribute-table', `reset-char-attribute-table',
305 `close-char-attribute-table' and `load-char-attribute-table' if
306 external-DB feature is not available.
307 (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
309 2002-07-15 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
311 * text-coding.c (Qcomposition): Add extern if external-DB feature
313 (Vcharacter_composition_table): Don't add extern if external-DB
314 feature is supported.
315 (COMPOSE_ADD_CHAR): Modify for new data-representation of
316 character composition rule if external-DB feature is supported.
318 * chartab.c (Vcharacter_composition_table): Don't define if
319 external-DB feature is supported.
320 (Qcomposition): New variable.
321 (Fget_composite_char): New implementation for external-DB support.
322 (Fput_char_attribute): Use `composition' property of each
323 character instead of `Vcharacter_composition_table' to store
324 character-composition rules if external-DB feature is supported.
325 (syms_of_chartab): Add new symbol `composition'.
326 (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
327 external-DB feature is supported.
329 2002-07-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
331 * chartab.c (Vchar_db_stingy_mode): New variable.
332 (load_char_attribute_maybe): Close database if
333 Vchar_db_stingy_mode is not NIL.
334 (Fload_char_attribute_table_map_function): Use
335 `get_char_id_table_0' instead of `get_char_id_table'.
336 (vars_of_chartab): Add new variable `char-db-stingy-mode'.
338 * chartab.h (get_char_id_table_0): New inline function.
339 (get_char_id_table): Use `get_char_id_table_0'.
341 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
343 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
344 and `COMPOSE_ADD_CHAR'.
345 (decode_coding_iso2022): Use `decode_flush_er_chars'.
347 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
349 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
350 instead of `DECODE_ADD_UCS_CHAR'.
351 (COMPOSE_ADD_CHAR): Likewise.
353 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
355 * text-coding.c (decode_flush_er_chars): New inline function.
356 (decode_add_er_char): New function.
357 (decode_coding_utf8): Use `decode_flush_er_chars' and
358 `decode_add_er_char'.
360 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
362 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
363 done before `decode_output_utf8_partial_char'.
365 * mule-charset.c (complex_vars_of_mule_charset): Specify
366 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
367 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
369 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
371 * mule-charset.c (decode_defined_char): New function; search
373 (decode_builtin_char): Don't search mother if
374 XCHARSET_MAX_CODE(charset) == 0.
375 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
376 == 0 even if code >= XCHARSET_MAX_CODE(charset).
377 (Fdecode_char): Use `decode_defined_char' instead of
378 `DECODE_DEFINED_CHAR'.
379 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
380 mother of `Vcharset_ucs_jis'.
382 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
383 instead of `DECODE_DEFINED_CHAR'.
385 * char-ucs.h (decode_defined_char): Renamed from
386 `DECODE_DEFINED_CHAR'; changed to normal function.
387 (DECODE_CHAR): Use `decode_defined_char' instead of
388 `DECODE_DEFINED_CHAR'.
390 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
392 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
394 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
396 * text-coding.c (Vcoded_charset_entity_reference_alist): New
398 (Quse_entity_reference): New variable.
402 (coding_system_description): Add description for
404 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
405 (allocate_coding_system): Initialize `ccs_priority_list' in
407 (Fmake_coding_system): Add description about
408 'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
410 (Fcoding_system_property): Accept `disable-composition' and
411 `use-entity-reference' in UTF-2000.
412 (struct decoding_stream): Add new member `er_counter' and `er_buf'
414 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
415 (decode_coding_utf8): Decode entity-reference if
416 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
417 (char_encode_utf8): Encode non-Unicode characters as
418 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
420 (syms_of_file_coding): Add new symbols `use-entity-reference',
422 (vars_of_file_coding): Add new variable
423 `coded-charset-entity-reference-alist'.
424 (complex_vars_of_file_coding): Declare `disable-composition' and
425 `use-entity-reference' to be coding-system-properties in UTF-2000.
427 * file-coding.h (struct Lisp_Coding_System): Add new member
428 `use_entity_reference' and `ccs_priority_list'.
429 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
430 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
431 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
433 2002-07-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
435 * chartab.c (save_uint8_byte_table): Don't clear the table.
436 (save_uint16_byte_table): Likewise.
437 (save_byte_table): Likewise.
438 (Fmount_char_attribute_table): New function.
439 (syms_of_chartab): Add new builtin function
440 `mount-char-attribute-table'.
442 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
444 * mule-charset.c (Fsave_charset_mapping_table): Open database as
446 (load_char_decoding_entry_maybe): Open database as read-only mode.
448 * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
449 open database as "w+" mode.
450 (load_char_attribute_maybe): Open database as read-only mode.
451 (Fload_char_attribute_table): Likewise.
453 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
455 * chartab.c (mark_char_table): Don't refer `ct->db_file'.
456 (char_table_description): Delete member `db_file'.
457 (Fmake_char_table): Don't refer `ct->db_file'.
458 (Fcopy_char_table): Likewise.
459 (Fsave_char_attribute_table): Likewise.
460 (Fclose_char_attribute_table): Likewise.
461 (Freset_char_attribute_table): Likewise.
462 (load_char_attribute_maybe): Likewise.
463 (Fload_char_attribute_table): Likewise.
465 * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
467 2002-07-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
469 * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
470 (Fsave_char_attribute_table): Don't check `ct->db_file' if
472 (load_char_attribute_maybe): Likewise.
473 (Fload_char_attribute_table): Likewise.
475 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
477 * chartab.c (Fclose_char_attribute_table): Set Qnil on
478 `ct->db_file' unconditionally.
480 2002-07-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
482 * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
484 (char_table_description): Add description for `db_file' and `db'
486 (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
488 (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
489 (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
490 (Fclose_char_attribute_table): New function.
491 (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
492 (load_char_attribute_maybe): Change interface; use `cit->db_file'
494 (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
495 (syms_of_chartab): Add new builtin function
496 `Fclose_char_attribute_table'.
498 2002-06-28 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
500 * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
502 (load_char_attribute_maybe): Change interface.
503 (get_char_id_table): Modify for `load_char_attribute_maybe'.
505 2002-06-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
507 * database.h: Add an EXFUN for `Fdatabase_live_p'.
509 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
511 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
512 instead of `DECODE_CHAR' for mother; don't use special code for
513 chinese-big5 to use code space of chinese-big5-1 and
515 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
516 `MAX_CHAR_BIG5_CDP' for chinese-big5.
518 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
519 (MAX_CHAR_BIG5_CDP): Revival.
521 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
523 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
524 the XLFD registry-encoding name of `chinese-big5'.
526 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
528 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
529 (Qchinese_big5_cdp): Deleted.
530 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
531 (complex_vars_of_mule_charset): Delete coded-charset
534 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
535 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
536 `CHARSET_ID_OFFSET - n' for private CCS.
537 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
538 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
539 of `MIN_LEADING_BYTE'.
540 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
541 `(CHARSET_ID_OFFSET - 97)'.
542 (MIN_CHAR_BIG5_CDP): Deleted.
543 (MAX_CHAR_BIG5_CDP): Deleted.
545 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
547 * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
549 2002-03-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
551 * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
552 (vars_of_mule): Add new variable `utf-2000-version' [moved from
555 * chartab.c (Vutf_2000_version): Moved to mule.c.
556 (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
558 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
560 * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
561 when HAVE_CHISE_CLIENT is not defined.
563 * mule.c (vars_of_mule): Provide feature `chise' when
564 HAVE_CHISE_CLIENT is defined.
566 2002-03-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
568 * config.h.in (UTF2000): Add comment.
569 (HAVE_CHISE_CLIENT): New macro.
571 2002-02-25 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
573 * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
575 (Fput_char_attribute): Likewise.
576 (char_attribute_system_db_file): Encode file-name of attribute.
577 (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
580 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
582 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
583 (Fsave_charset_mapping_table): Use
584 `char_attribute_system_db_file'.
585 (load_char_decoding_entry_maybe): Likewise.
587 * chartab.h (Qsystem_char_id): New external variable.
588 (char_attribute_system_db_file): New prototype.
590 * chartab.c (Qsystem_char_id): New variable in UTF-2000.
591 (char_attribute_system_db_file): New function.
592 (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
593 (Freset_char_attribute_table): Likewise.
594 (load_char_attribute_maybe): Likewise.
595 (Fload_char_attribute_table): Likewise.
596 (syms_of_chartab): Add new symbol `system-char-id'.
598 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
600 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
601 `XCHARSET_GRAPHIC(ccs)'.
603 2002-02-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
605 * mule-charset.c (Fsave_charset_mapping_table): Fixed.
607 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
609 * chartab.c (Q_ucs_variants): New variable.
610 (syms_of_chartab): Add new symbol `->ucs-variants'.
611 (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
612 `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
613 `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
615 * mule-charset.c (load_char_decoding_entry_maybe): New function.
617 * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
618 `HAVE_DATABASE' is defined.
619 (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
620 `HAVE_DATABASE' is defined.
622 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
624 * chartab.c (Fsave_char_attribute_table): Don't clear internal
626 (Freset_char_attribute_table): New function.
627 (syms_of_chartab): Add new builtin function
628 `reset-char-attribute-table'.
630 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
632 * chartab.c (load_char_attribute_maybe): Don't make directories.
634 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
636 * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
638 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
641 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
643 * mule-charset.c (Fsave_charset_mapping_table): Use
644 `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
646 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
647 instead of `XCHARSET_CHARS'.
649 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
651 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
652 (XCHARSET_BYTE_SIZE): Likewise.
654 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
656 (XCHARSET_BYTE_SIZE): Likewise.
658 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
660 * chartab.c (Fput_char_attribute): Use exec-directory instead of
661 data-directory to store database.
662 (Fsave_char_attribute_table): Likewise.
663 (load_char_attribute_maybe): Likewise.
664 (Fload_char_attribute_table): Likewise.
666 2002-02-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
668 * mule-charset.c (Fsave_charset_mapping_table): New function.
669 (syms_of_mule_charset): Add new builtin function
670 `save-charset-mapping-table'.
672 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
674 * char-ucs.h (decoding_table_check_elements): Delete prototype.
675 (get_ccs_octet_table): New inline function.
676 (put_ccs_octet_table): Likewise.
677 (decoding_table_put_char): Use `get_ccs_octet_table' and
678 `put_ccs_octet_table'.
679 (decoding_table_remove_char): Use `decoding_table_put_char'.
680 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
682 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
684 (make_charset): Use Qunbound instead Qnil as initial value of
687 2002-02-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
689 * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
690 element is Qunloaded.
691 (map_over_uint16_byte_table): Likewise.
692 (map_over_byte_table): Likewise.
693 (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
694 CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
695 database support, load encoding-table of the specified
696 coded-charset if it is not loaded yet.
697 (save_uint8_byte_table): New function of UTF-2000 with external
699 (save_uint16_byte_table): Likewise.
700 (save_byte_table): Likewise.
701 (Fput_char_attribute): Don't store value into external database
702 even if the external database feature is supported in UTF-2000;
703 set `attribute' as name of char-table if the external database
704 feature is supported.
705 (Fsave_char_attribute_table): New function in UTF-2000.
706 (syms_of_chartab): Add new builtin function
707 `save-char-attribute-table' in UTF-2000.
709 2002-02-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
711 * chartab.c (char_attribute_table_to_put): New variable in
713 (Qput_char_table_map_function): Likewise.
714 (value_to_put): Likewise.
715 (Fput_char_table_map_function): New function in UTF-2000.
716 (put_char_table): Use `Fmap_char_attribute' for
717 CHARTAB_RANGE_CHARSET in UTF-2000.
718 (Fput_char_attribute): Store symbol instead of string in
719 `XCHAR_TABLE_NAME (table)'.
720 (load_char_attribute_maybe): Likewise.
721 (syms_of_chartab): Add new symbol/function
722 `put-char-table-map-function'.
724 2002-01-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
726 * database.h: Add new EXFUN for `Fmap_database'.
728 * database.c (Fmap_database): Renamed from `Fmapdatabase'.
729 (syms_of_database): Likewise.
731 * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
733 (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
734 (XCHAR_TABLE_UNLOADED): Likewise.
736 * chartab.c (fill_char_table): Initialize `ct->unloaded'.
737 (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
738 HAVE_DATABASE is defined.
739 (char_attribute_table_to_load): New variable of UTF-2000 with
740 external database support.
741 (Qload_char_attribute_table_map_function): Likewise.
742 (Fload_char_attribute_table_map_function): New function of
743 UTF-2000 with external database support.
744 (Fload_char_attribute_table): New function of UTF-2000.
745 (Fmap_char_attribute): Call Fload_char_attribute_table if
746 CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
747 (syms_of_chartab): Add new symbol and function
748 `load-char-attribute-table-map-function' in UTF-2000 with external
749 database support; add new function `load-char-attribute-table' in
752 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
754 * chartab.h (load_char_attribute_maybe): New prototype for
755 UTF-2000 with DATABASE support.
756 (get_char_id_table): Use `load_char_attribute_maybe' if
757 HAVE_DATABASE is defined.
759 * chartab.c (load_char_attribute_maybe): New function in UTF-2000
760 with DATABASE support.
762 2002-01-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
764 * chartab.c (Fput_char_attribute): Use S-expression as key of
767 * chartab.h (get_char_id_table): Use S-expression as key of
770 2002-01-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
772 * chartab.c (map_over_uint8_byte_table): Add new argument `root';
773 if an element is not loaded, load the corresponding attributes
774 from an external database.
775 (map_over_uint16_byte_table): Likewise.
776 (map_over_byte_table): Likewise.
777 (map_char_table): Modify for `map_over_uint8_byte_table',
778 `map_over_uint16_byte_table' and `map_over_byte_table'; if an
779 element is not loaded, load the corresponding attributes from an
781 (Fput_char_attribute): Change initial values to Qunloaded.
783 * chartab.h (get_char_id_table): If a character attribute is not
784 loaded and the attribute value is not found in an external
785 database, store Qunbound as the attribute value.
787 2002-01-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
789 * chartab.c (BT_UINT8_unloaded): New macro.
790 (UINT8_VALUE_P): Accept Qunloaded.
791 (UINT8_ENCODE): Likewise.
792 (UINT8_DECODE): Likewise.
793 (BT_UINT16_unloaded): New macro.
794 (UINT16_VALUE_P): Accept Qunloaded.
795 (UINT16_ENCODE): Likewise.
796 (UINT16_DECODE): Likewise.
797 (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
799 (mark_char_table): Mark `ct->name' in UTF-2000.
800 (char_table_description): Add `name' in UTF-2000.
801 (Fmake_char_table): Initialize `ct->name'.
802 (Fcopy_char_table): Copy `ct->name'.
803 (Fput_char_attribute): Store value into an external database if
804 HAVE_DATABASE is defined.
806 * chartab.h (struct Lisp_Char_Table): Add new member `name' in
808 (CHAR_TABLE_NAME): New macro in UTF-2000.
809 (XCHAR_TABLE_NAME): New macro in UTF-2000.
810 (get_char_id_table): Try to read an external database if Qunloaded
811 is stored in a table.
813 * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
816 2002-01-21 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
818 * database.h: Add EXFUN definitions for Fopen_database,
819 Fput_database, Fget_database and Fclose_database.
821 * data.c (Qunloaded): New variable in UTF-2000.
823 * lisp.h (Qunloaded): New variable in UTF-2000.
825 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
827 * mule-charset.c (put_char_ccs_code_point): Modify for
828 `decoding_table_remove_char' and `decoding_table_put_char'.
829 (remove_char_ccs): Modify for `decoding_table_remove_char'.
831 * char-ucs.h (decoding_table_remove_char): Change arguments to
832 hide decoding_table vector.
833 (decoding_table_put_char): Likewise.
835 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
837 * mule-charset.c (decoding_table_remove_char): Moved to
839 (decoding_table_put_char): Likewise.
841 * char-ucs.h (decoding_table_check_elements): New prototype [moved
842 from mule-charset.c].
843 (decoding_table_remove_char): New inline function [moved from
845 (decoding_table_put_char): Likewise.
847 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
849 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
852 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
854 * mule-charset.c (decode_builtin_char): Support mother charsets.
856 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
858 * mule-charset.c (Q94x94x60): New variable.
859 (charset_code_point): Support conversion `94x94x60'.
860 (Fmake_charset): Likewise.
861 (syms_of_mule_charset): Add new symbol `94x94x60'.
863 * char-ucs.h (CONVERSION_94x94x60): New macro.
865 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
867 * mule-charset.c (charset_code_point): Unify code about
870 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
872 * mule-charset.c (charset_code_point): Merge code about builtin
873 characters into code about mother charsets; don't use
874 `range_charset_code_point'.
875 (range_charset_code_point): Deleted.
877 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
879 * mule-charset.c (Qcode_offset): New variable.
880 (Fmake_charset): Use `XUINT' to get value of `min-code' and
881 `max-code'; accept new property `code-offset'.
882 (syms_of_mule_charset): Add new symbol `code-offset'.
884 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
886 * mule-charset.c (range_charset_code_point): Fixed.
888 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
890 * mule-charset.c (decode_builtin_char): Change semantics of
891 code-offset of coded-charset.
892 (charset_code_point): Likewise.
893 (range_charset_code_point): Likewise.
894 (complex_vars_of_mule_charset): Modify for the change.
896 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
898 * mule-charset.c (Fencode_char): Reverse arguments.
900 * mule-charset.c (charset_code_point): Fixed.
902 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
904 * mule-charset.c (Vcharset_mojikyo): Deleted.
905 (Vcharset_mojikyo_2022_1): Deleted.
906 (Vcharset_mojikyo_pj_{1..21}): Deleted.
907 (Qmin_code): New variable in UTF-2000.
908 (Qmax_code): Likewise.
910 (Qconversion): Likewise.
913 (Qmojikyo_2022_1): Deleted.
914 (Qmojikyo_pj_{1..22}): Deleted.
915 (mark_charset): Mark `cs->mother'.
916 (charset_description): Add description for `mother'.
917 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
918 new arguments `mother' and `conversion'; use
919 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
920 (charset_code_point): Moved from char-ucs.h; support `mother'
922 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
923 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
924 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
925 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
926 allow 2 as the value of `graphic' in UTF-2000; add new properties
927 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
928 require `final' in UTF-2000; modify for `make_charset'.
929 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
930 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
931 (Fcharset_property): Support `mother', `min-code' and `max-code'.
932 (Fencode_char): New function.
933 (syms_of_mule_charset): Add new builtin function `encode-char' in
934 UTF-2000; add new symbols `min-code', `max-code', `mother',
935 `conversion' and `94x60'; delete symbols `mojikyo',
936 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
937 (complex_vars_of_mule_charset): Modify for `make_charset' change;
938 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
939 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
941 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
942 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
944 * char-ucs.h (Vcharset_mojikyo): Deleted.
945 (Vcharset_mojikyo_2022_1): Deleted.
946 (LEADING_BYTE_MOJIKYO): Deleted.
947 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
948 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
949 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
950 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
951 add new member `mother'; add new member `conversion'.
952 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
953 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
954 (CHARSET_MOTHER): New macro.
955 (CHARSET_CONVERSION): New macro.
956 (CONVERSION_IDENTICAL): New macro.
957 (CONVERSION_94x60): New macro.
958 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
959 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
960 (XCHARSET_MOTHER): New macro.
961 (XCHARSET_CONVERSION): New macro.
962 (MIN_CHAR_MOJIKYO): Deleted.
963 (MAX_CHAR_MOJIKYO): Deleted.
964 (DECODE_MOJIKYO_2022): Deleted.
965 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
966 (charset_code_point): Changed to non-inline function.
967 (encode_char_1): Use `charset_code_point'.
968 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
970 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
972 * lread.c (read_compiled_function): Fix prototype.
973 (read_vector): Likewise.
975 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
977 * lrecord.h (struct lrecord_header): Delete `older'.
978 (set_lheader_implementation): Delete code for `older'.
979 (set_lheader_older_implementation): Deleted.
980 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
981 (OLDER_RECORD_P): Deleted.
982 (OLDER_RECORD_HEADER_P): Deleted.
983 (alloc_older_lcrecord): Deleted.
984 (alloc_older_lcrecord_type): Deleted.
986 * alloc.c (all_older_lcrecords): Deleted.
987 (alloc_older_lcrecord): Deleted.
988 (disksave_object_finalization_1): Delete code for older objects.
989 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
990 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
992 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
994 * mule-charset.c (decoding_table_put_char): Use `make_vector'
995 instead of `make_older_vector'.
996 (put_char_ccs_code_point): Likewise.
997 (mark_charset): Mark `cs->decoding_table'.
998 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1000 * lisp.h (make_older_vector): Deleted.
1001 (make_vector_newer): Deleted.
1003 * config.h.in (HAVE_GGC): Deleted.
1005 * alloc.c (make_older_vector): Deleted.
1006 (make_vector_newer_1): Deleted.
1007 (make_vector_newer): Deleted.
1009 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1012 (Qideograph_daikanwa_2): New variable.
1013 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1014 (complex_vars_of_mule_charset): Add new coded-charset
1015 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1016 `LEADING_BYTE_DAIKANWA'.
1018 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1019 (LEADING_BYTE_DAIKANWA_1): New macro.
1020 (LEADING_BYTE_DAIKANWA_2): New macro.
1021 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1023 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025 * mule-charset.c (complex_vars_of_mule_charset): Change
1026 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1027 the second revised version.
1029 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1031 * mule-charset.c (Vcharset_ucs_smp): New variable.
1032 (Vcharset_ucs_sip): New variable.
1033 (Qucs_smp): New variable.
1034 (Qucs_sip): New variable.
1035 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1036 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1037 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1038 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1039 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1040 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1042 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1043 (LEADING_BYTE_UCS_SIP): New macro.
1044 (MIN_CHAR_SMP): New macro.
1045 (MAX_CHAR_SMP): New macro.
1046 (MIN_CHAR_SIP): New macro.
1047 (MAX_CHAR_SIP): New macro.
1049 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1051 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1054 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1057 value; don't store value into `encoding_table' of `Lisp_Charset'.
1058 (mark_charset): `encoding_table' was deleted.
1059 (charset_description): Likewise.
1060 (make_charset): Likewise.
1061 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1062 `put_char_ccs_code_point'.
1064 * chartab.h (Fput_char_attribute): New EXFUN.
1066 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1067 is unified with normal symbol space.
1068 (Fget_char_attribute): Likewise.
1069 (Fput_char_attribute): Likewise; behavior of
1070 `put_char_ccs_code_point' is changed.
1072 * char-ucs.h: Include "elhash.h".
1073 (Vchar_attribute_hash_table): New external variable.
1074 (struct Lisp_Charset): Delete `encoding_table'.
1075 (CHARSET_ENCODING_TABLE): New implementation; refer
1076 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1079 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1081 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1084 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086 * text-coding.c (char_encode_big5): Prefer charset-g1 than
1089 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091 * chartab.c (uint8_byte_table_description): New constant.
1092 (uint8-byte-table): Use `uint8_byte_table_description'.
1093 (uint16_byte_table_description): New constant.
1094 (uint16-byte-table): Use `uint16_byte_table_description'.
1096 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1099 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1101 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103 * mule-charset.c (Vcharset_ucs_ks): New variable.
1104 (Qucs_ks): New variable.
1105 (syms_of_mule_charset): Add new symbol `ucs-ks'.
1106 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1108 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1110 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1112 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1113 (Fdecode_char): Likewise.
1115 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1117 (Fdefine_char): Modify for Fdecode_char.
1118 (Ffind_char): Likewise.
1120 * mule-charset.c (Fdecode_char): Add new optional argument
1122 (Fdecode_builtin_char): Modify for `Fdecode_char'.
1124 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1127 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1128 (allocate_coding_system): Initialize initial-charsets of
1129 CODESYS_BIG5 in XEmacs UTF-2000.
1130 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1131 CODESYS_BIG5 in XEmacs UTF-2000.
1132 (decode_coding_big5): Use initial-charset-g0 and -g1 of
1133 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1135 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1137 (Qideograph_hanziku_{1 .. 12}): Likewise.
1138 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1140 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1141 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1142 `ideograph-hanziku-{1 .. 12}'.
1144 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1145 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1146 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1147 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1148 (DECODE_DEFINED_CHAR): New inline function.
1149 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1151 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153 * mule-charset.c (Vcharset_china3_jef): Renamed from
1154 `Vcharset_japanese_jef_china3'.
1155 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1156 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1157 `{MIN|MAX}_CHAR_JEF_CHINA3'..
1158 (syms_of_mule_charset): Rename `china3-jef' from
1159 `japanese-jef-china3'.
1160 (complex_vars_of_mule_charset): Likewise; rename
1161 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1163 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1164 `LEADING_BYTE_JEF_CHINA3'.
1165 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1166 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1168 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170 * mule-charset.c (encode_builtin_char_1): Comment out special code
1171 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1173 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1174 (MAX_CHAR_MOJIKYO_0): Comment out.
1175 (MIN_CHAR_CBETA): Changed to 0x00E20000.
1176 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1177 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1178 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1180 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1183 (Qideograph_cbeta): New variable.
1184 (encode_builtin_char_1): Comment out special code for
1185 coded-charset `mojikyo' and `japanese-jef-china3'.
1186 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1187 (complex_vars_of_mule_charset): Add new coded-charset
1190 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1191 (MIN_CHAR_CBETA): New macro.
1192 (MAX_CHAR_CBETA): New macro.
1194 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1197 (LEADING_BYTE_JEF_CHINA3): New macro.
1198 (MIN_CHAR_JEF_CHINA3): New macro.
1199 (MAX_CHAR_JEF_CHINA3): Likewise.
1200 (DECODE_CHAR): Fixed.
1202 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1205 (Qjapanese_jef_china3): New variable.
1206 (encode_builtin_char_1): Support `japanese-jef-china3'.
1207 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1208 (complex_vars_of_mule_charset): Add new coded-charset
1209 `japanese-jef-china3'.
1211 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1214 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1215 94^4, 96^3, 96^4, 128^n and 256^n set.
1216 (put_char_table): Use `XCHARSET_CELL_RANGE'.
1217 (map_char_table): Likewise.
1219 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1224 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226 * chartab.h (get_char_id_table): New inline function.
1228 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1231 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233 * chartab.h (decode_char_table_range): New prototype in XEmacs
1235 (put_char_id_table): New inline function in XEmacs UTF-2000.
1237 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1239 (decode_char_table_range): Delete static declaration in XEmacs
1242 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244 * chartab.c (put_char_id_table): Use `put_char_table'.
1246 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1249 (map_over_uint16_byte_table): Likewise.
1250 (map_over_byte_table): Likewise.
1251 (map_char_table): Modify for `map_over_uint8_byte_table',
1252 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1255 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257 * chartab.c (struct map_char_table_for_charset_arg): New
1259 (map_char_table_for_charset_fun): New function.
1260 (map_char_table): Use `map_char_table' for encoding_table of
1263 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265 * chartab.c (map_char_table): Check a character is found in
1266 range->charset instead of non default value is defined in
1267 char-table when range is CHARTAB_RANGE_ROW.
1269 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271 * chartab.c (map_char_id_table): Deleted.
1272 (Fmap_char_attribute): Use `map_char_table' instead of
1273 `map_char_id_table'.
1275 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1277 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1279 (update_syntax_table): Deleted in XEmacs UTF-2000.
1281 * syntax.c (find_defun_start): Use `syntax_table' instead of
1282 `mirror_syntax_table' in XEmacs UTF-2000.
1283 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1285 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1287 (Fmatching_paren): Likewise.
1288 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1290 (find_start_of_comment): Likewise.
1291 (find_end_of_comment): Likewise.
1292 (Fforward_comment): Likewise.
1293 (scan_lists): Likewise.
1294 (char_quoted): Likewise.
1295 (Fbackward_prefix_chars): Likewise.
1296 (scan_sexps_forward): Likewise.
1297 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1298 (update_syntax_table): Likewise.
1300 * search.c (skip_chars): Use `syntax_table' instead of
1301 `mirror_syntax_table' in XEmacs UTF-2000.
1302 (wordify): Likewise.
1303 (Freplace_match): Likewise.
1305 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1306 `mirror_syntax_table' in XEmacs UTF-2000.
1307 (WORDCHAR_P_UNSAFE): Likewise.
1308 (re_match_2_internal): Likewise.
1310 * font-lock.c (find_context): Use `buf->syntax_table' instead of
1311 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1313 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1314 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1316 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1319 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1321 (print_char_table): Print `default_value' in XEmacs UTF-2000.
1322 (char_table_description): Delete `mirror_table' in XEmacs
1324 (fill_char_table): Don't call `update_syntax_table' in XEmacs
1326 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1327 (Fcopy_char_table): Likewise.
1328 (put_char_table): Don't call `update_syntax_table' in XEmacs
1331 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1332 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1333 (casify_region_internal): Likewise.
1335 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1337 * buffer.c (common_init_complex_vars_of_buffer): Don't use
1338 `mirror_syntax_table' in XEmacs UTF-2000.
1340 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1341 `buf->mirror_syntax_table' in XEmacs UTF-2000.
1342 (Fexpand_abbrev): Likewise.
1344 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1348 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1350 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1351 (map_over_uint16_byte_table): Likewise.
1352 (map_over_byte_table): Likewise.
1353 (get_char_id_table): Refer `cit->default_value'.
1354 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1355 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1356 of character-id ranges.
1357 (mark_char_table): Mark `ct->default_value'.
1358 (char_table_description): Add `default_value'.
1359 (fill_char_table): Use `default_value'.
1360 (decode_char_table_range): Decode `nil' as
1361 `CHARTAB_RANGE_DEFAULT'.
1362 (get_char_id_table): Refer `cit->default_value'.
1363 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1364 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1365 temporary hack; check value of char-table is bound or not.
1366 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1368 * chartab.h (struct Lisp_Char_Table): Add new member
1369 `default_value' in XEmacs UTF-2000.
1370 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1371 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1374 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376 * chartab.h (Lisp_Char_ID_Table): Deleted.
1378 * chartab.c (char_table_description): Fix typo.
1379 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1380 `Lisp_Char_ID_Table'.
1382 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1387 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1390 * chartab.h (XCHAR_ID_TABLE): Deleted.
1391 (XSETCHAR_ID_TABLE): Deleted.
1392 (CHAR_ID_TABLE_P): Deleted.
1394 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1396 (Fget_composite_char): Likewise.
1397 (put_char_table): Likewise.
1398 (add_char_attribute_alist_mapper): Fixed.
1399 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1401 (Fget_char_attribute): Likewise.
1402 (Fget_char_attribute): Likewise.
1403 (Fmap_char_attribute): Likewise.
1405 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1407 (encode_char_1): Likewise.
1409 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1414 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1415 instead of `XCHAR_ID_TABLE'.
1416 (remove_char_ccs): Likewise.
1418 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1420 (Fget_composite_char): Likewise.
1421 (Fchar_variants): Likewise.
1422 (put_char_table): Likewise.
1423 (add_char_attribute_alist_mapper): Likewise.
1424 (Fchar_attribute_alist): Likewise.
1425 (Fget_char_attribute): Likewise.
1426 (Fput_char_attribute): Likewise.
1427 (Fmap_char_attribute): Likewise.
1428 (Fmap_char_attribute): Likewise.
1430 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1432 (encode_char_1): Likewise.
1434 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1437 `Lisp_Char_ID_Table'.
1438 (mark_char_id_table): Deleted.
1439 (print_char_id_table): Likewise.
1440 (char_id_table_equal): Likewise.
1441 (char_id_table_hash): Likewise.
1442 (char_id_table_description): Likewise.
1443 (char_id_table): Likewise.
1444 (make_char_id_table): Use `Fmake_char_table' and
1446 (get_char_id_table): Use `Lisp_Char_Table' instead of
1447 `Lisp_Char_ID_Table'.
1448 (put_char_id_table): Likewise.
1449 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1451 (Fremove_char_attribute): Likewise.
1452 (syms_of_chartab): Don't define type `char-id-table'.
1454 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1455 (char_id_table): Likewise.
1456 (GC_CHAR_ID_TABLE_P): Likewise.
1457 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1458 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1459 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1460 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1461 (get_char_id_table): Use `Lisp_Char_Table' instead of
1462 `Lisp_Char_ID_Table'.
1463 (put_char_id_table_0): Likewise.
1464 (put_char_id_table): Likewise.
1466 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1468 * chartab.h: Lisp_Byte_Table related codes are moved from
1471 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1473 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1475 * chartab.h: Don't include "chartab.h".
1476 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1477 (Lisp_Char_ID_Table): Likewise.
1478 (char_id_table): Likewise.
1479 (XCHAR_ID_TABLE): Likewise.
1480 (XSETCHAR_ID_TABLE): Likewise.
1481 (CHAR_ID_TABLE_P): Likewise.
1482 (GC_CHAR_ID_TABLE_P): Likewise.
1483 (get_char_id_table): Likewise.
1485 * char-ucs.h: Include "chartab.h".
1486 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1487 (Lisp_Char_ID_Table): Likewise.
1488 (char_id_table): Likewise.
1489 (XCHAR_ID_TABLE): Likewise.
1490 (XSETCHAR_ID_TABLE): Likewise.
1491 (CHAR_ID_TABLE_P): Likewise.
1492 (GC_CHAR_ID_TABLE_P): Likewise.
1493 (get_char_id_table): Likewise.
1495 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1497 * chartab.c (copy_uint8_byte_table): New function.
1498 (copy_uint16_byte_table): New function.
1499 (copy_byte_table): New function.
1500 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1502 (map_over_uint16_byte_table): Likewise.
1503 (map_over_byte_table): Likewise.
1504 (get_byte_table): Move prototype to chartab.h.
1505 (put_byte_table): Likewise.
1506 (put_char_id_table_0): Moved to chartab.h.
1507 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1508 (char_table_entry_equal): Likewise.
1509 (char_table_entry_hash): Likewise.
1510 (char_table_entry_description): Likewise.
1511 (char_table_entry): Likewise.
1512 (make_char_table_entry): Likewise.
1513 (copy_char_table_entry): Likewise.
1514 (get_non_ascii_char_table_value): Likewise.
1515 (map_over_charset_ascii): Likewise.
1516 (map_over_charset_control_1): Likewise.
1517 (map_over_charset_row): Likewise.
1518 (map_over_other_charset): Likewise.
1519 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1520 (print_char_table): Likewise.
1521 (char_table_equal): Likewise.
1522 (char_table_hash): Likewise.
1523 (char_table_description): Likewise.
1524 (fill_char_table): Likewise.
1525 (Fcopy_char_table): Likewise.
1526 (get_char_table): Likewise.
1527 (Fget_range_char_table): Likewise.
1528 (put_char_table): Likewise.
1529 (map_char_table): Likewise.
1530 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1533 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1536 `Vauto_fill_chars' in XEmacs UTF-2000.
1538 * chartab.h (get_byte_table): New prototype [moved from
1540 (put_byte_table): Likewise [moved from chartab.c].
1541 (put_char_id_table_0): New inline function [moved from chartab.c].
1542 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1543 (Lisp_Char_Table_Entry): Likewise.
1544 (char_table_entry): Likewise.
1545 (XCHAR_TABLE_ENTRY): Likewise.
1546 (XSETCHAR_TABLE_ENTRY): Likewise.
1547 (CHAR_TABLE_ENTRYP): Likewise.
1548 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1549 (NUM_ASCII_CHARS): Likewise.
1550 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1551 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1553 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555 * chartab.c (get_char_id_table): Change interface.
1556 (put_char_id_table_0): New function.
1557 (put_char_id_table): Change interface; new implementation.
1558 (Fget_composite_char): Modify for interface change of
1559 `get_char_id_table'.
1560 (Fchar_variants): Likewise.
1561 (add_char_attribute_alist_mapper): Likewise.
1562 (Fchar_attribute_alist): Likewise.
1563 (Fget_char_attribute): Likewise.
1564 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1565 as same as character as the first argument like `put-char-table';
1566 modify for interface change of `put_char_id_table'.
1567 (Fremove_char_attribute): Modify for interface change of
1568 `put_char_id_table'.
1570 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572 * text-coding.c: Sync up with XEmacs 21.2.41.
1573 (COMPOSE_ADD_CHAR): Modify for interface change of
1574 `get_char_id_table'.
1576 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1577 change of `put_char_id_table'.
1578 (remove_char_ccs): Likewise.
1580 * chartab.h (put_char_id_table): Change interface.
1582 * char-ucs.h (get_char_id_table): Change interface.
1583 (charset_code_point): Modify for interface change of
1584 `get_char_id_table'.
1585 (encode_char_1): Likewise.
1587 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1591 (map_over_uint16_byte_table): Likewise.
1592 (map_over_byte_table): Likewise.
1593 (map_char_id_table): Add new argument `range' like
1595 (Fmap_char_attribute): Add new argument `range' like
1598 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600 * chartab.c (map_over_uint8_byte_table): Change interface of
1601 mapping function to use struct chartab_range instead of Emchar.
1602 (map_over_uint16_byte_table): Likewise.
1603 (map_over_byte_table): Likewise.
1604 (map_char_id_table): Likewise.
1605 (struct slow_map_char_id_table_arg): Deleted.
1606 (slow_map_char_id_table_fun): Deleted.
1607 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1608 function `slow_map_char_table_fun' instead of struct
1609 `slow_map_char_id_table_arg' and function
1610 `slow_map_char_id_table_fun'.
1612 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614 * mule-charset.c: Move char-it-table related codes to chartab.c.
1615 (Vutf_2000_version): Moved to chartab.c.
1616 (Fdefine_char): Likewise.
1617 (Ffind_char): Likewise.
1618 (syms_of_mule_charset): Move types `uint8-byte-table',
1619 `uint16-byte-table', `byte-table' and `char-id-table' to
1620 chartab.c; move functions `char_attribute_list,
1621 `find_char_attribute_table, `char_attribute_alist,
1622 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1623 `map_char_attribute, `define_char, `find_char, `char_variants and
1624 `get_composite_char to chartab.c; move symbols `=>ucs',
1625 `->decomposition', `compat', `isolated', `initial', `medial',
1626 `final', `vertical', `noBreak', `fraction', `super', `sub',
1627 `circle', `square', `wide', `narrow', `small' and `font' to
1629 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1630 setting codes for `Vcharacter_composition_table' and
1631 `Vcharacter_variant_table' to chartab.c.
1632 (complex_vars_of_mule_charset): Move setting code for
1633 `Vchar_attribute_hash_table' to chartab.c.
1635 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1636 (make_char_id_table): New prototype.
1637 (put_char_id_table): Likewise.
1638 (Fget_char_attribute): Likewise.
1640 * chartab.c: Move char-id-table related code from mule-charset.c.
1641 (Vutf_2000_version): Moved from mule-charset.c.
1643 * char-ucs.h (Qucs): New external variable.
1644 (put_char_ccs_code_point): New prototype.
1645 (remove_char_ccs): Likewise.
1647 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1649 * mule-charset.c (Vcharset_ucs_jis): New variable.
1650 (Qucs_jis): Likewise.
1651 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1652 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1654 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1656 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658 * mule-charset.c (map_over_uint8_byte_table): New function.
1659 (map_over_uint16_byte_table): Likewise.
1660 (map_over_byte_table): Likewise.
1661 (map_char_id_table): Likewise.
1662 (slow_map_char_id_table_fun): Likewise.
1663 (Fmap_char_attribute): Likewise.
1664 (syms_of_mule_charset): Add new function `map-char-attribute'.
1666 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1668 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1669 (syms_of_mule_charset): Add new function `find-char'.
1671 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1675 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1676 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1678 (complex_vars_of_mule_charset): Add new coded-charset
1679 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1680 `ideograph-gt-pj-*'.
1682 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1684 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1686 * mule-charset.c (encode_builtin_char_1): Purge codes about
1687 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1688 {MIN|MAX}_CHAR_HEBREW.
1689 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1690 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1692 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1693 (MAX_CHAR_GREEK): Purged.
1694 (MIN_CHAR_CYRILLIC): Purged.
1695 (MAX_CHAR_CYRILLIC): Purged.
1696 (MIN_CHAR_HEBREW): Commented out.
1697 (MAX_CHAR_HEBREW): Likewise.
1699 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701 * mule-charset.c (Qto_ucs): New variable.
1702 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1703 (Fdefine_char): Likewise.
1704 (syms_of_mule_charset): Add new symbol `=>ucs'.
1706 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708 * mule-charset.c (Fdecode_char): Fixed.
1710 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1713 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1716 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718 * mule-charset.c (Vcharset_ucs_big5): New variable.
1719 (Qucs_big5): Likewise.
1720 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1721 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1723 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1725 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727 * mule-charset.c (decode_builtin_char): Check Big5 code range
1728 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1730 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1733 (Qchinese_gb12345): Likewise.
1734 (Fdecode_builtin_char): Fixed.
1735 (syms_of_mule_charset): Add `chinese-gb12345'.
1736 (complex_vars_of_mule_charset): Add coded-charset
1739 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1740 (LEADING_BYTE_CHINESE_GB12345): New macro.
1742 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1745 and `latin-viscii-upper' for `latin-viscii'.
1747 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749 * mule-charset.c (Fdecode_builtin_char): Comment out
1750 regularization code for ISO-IR GR representation.
1752 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754 * mule-charset.c (decode_builtin_char): New function; renamed from
1755 `make_builtin_char'; return -1 instead of signal.
1756 (Fdecode_builtin_char): Use `decode_builtin_char'.
1758 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1759 `make_builtin_char'.
1760 (DECODE_CHAR): Use `decode_builtin_char' instead of
1761 `make_builtin_char'; use mapping table of `chinese-big5' for
1762 `chinese-big5-{1,2}'.
1764 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1766 * text-coding.c (char_encode_big5): New function.
1767 (char_finish_big5): Likewise.
1768 (reset_encoding_stream): Use `char_encode_big5' and
1769 `char_finish_big5' for CODESYS_BIG5.
1770 (mule_encode): Don't use `encode_coding_big5'.
1771 (encode_coding_big5): Deleted.
1773 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1776 0x81- in XEmacs UTF-2000.
1777 (detect_coding_big5): Likewise.
1779 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1782 generate character-id if the CCS property does not have
1783 corresponding predefined character.
1784 (make_builtin_char): Return -1 if corresponding predefined
1785 character is not found.
1786 (Fdecode_char): Return nil if corresponding character is not
1788 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1789 don't map to builtin ucs space.
1791 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1794 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1796 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1799 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1800 (Qideograph_gt): Likewise.
1801 (Qideograph_gt_pj_{1..11}): Likewise.
1802 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1803 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1804 `ideograph-gt-pj-11'.
1805 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1806 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1807 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1809 * char-ucs.h (LEADING_BYTE_GT): New macro.
1810 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1811 (MIN_CHAR_GT): Likewise.
1812 (MAX_CHAR_GT): Likewise.
1814 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1817 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1819 * doprnt.c (unsigned_int_converters): Add `c'.
1820 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1822 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1823 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1825 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1826 (MAX_CHAR_MOJIKYO_0): New macro.
1827 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1829 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831 * mule-charset.c (Fdefine_char): Delete cemented out code.
1832 (encode_builtin_char_1): Modify for new allocation of builtin
1835 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1837 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839 * mule-charset.c (Vcharset_ucs_cns): New variable.
1840 (Qucs_cns): New variable.
1841 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1842 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1844 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1848 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1850 * search.c (search_buffer): Make `charset_base_code' as
1851 character-id >> 6 to eliminate the corresponding last byte in
1852 UTF-8 representation [I'm not sure it is right thing].
1853 (boyer_moore): Likewise.
1855 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1857 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1858 representation in MULE.
1860 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862 * text-coding.c (Fmake_coding_system): Use
1863 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1864 `EXTERNAL_PROPERTY_LIST_LOOP'.
1866 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868 * text-coding.c (decode_output_utf8_partial_char): New function.
1869 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1871 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873 * text-coding.c (decode_coding_utf8): Output original byte
1874 sequence if it is broken; change order of conditions.
1876 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1879 * mb-multibyte.h (BYTE_ASCII_P):
1880 Use bit ops for char-signedness safety.
1881 (BYTE_C0_P): Use bit ops for char-signedness safety.
1882 (BYTE_C1_P): Use bit ops for char-signedness safety.
1884 * character.h: (XCHAR_OR_CHAR_INT):
1885 Always use inline function.
1886 Remove redundant type checking assert() - XINT will abort quite
1889 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891 * text-coding.c: (Fencode_shift_jis_char):
1892 (Fencode_big5_char):
1893 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1894 Replace 0 with '\0' when working with bytes.
1895 Replace initial "(" with "\(" in docstrings.
1897 (Fmake_coding_system):
1898 When type is ccl and value is vector, register it with a proper
1899 symbol. And checks whether the given ccl program is valid.
1900 (mule_decode): When calling ccl_driver, if src indicates
1901 NULL pointer, set an empty string instead.
1902 (mule_encode): Likewise.
1905 (detect_coding_sjis):
1906 (decode_coding_sjis):
1907 (detect_coding_big5):
1908 (decode_coding_big5):
1909 (detect_coding_ucs4):
1910 (decode_coding_ucs4):
1911 (detect_coding_utf8):
1912 (decode_coding_utf8):
1913 (detect_coding_iso2022):
1914 (decode_coding_iso2022):
1915 (decode_coding_no_conversion):
1917 Make all detecting and decoding functions take an Extbyte * arg.
1918 (text_encode_generic):
1919 (encode_coding_big5):
1920 (encode_coding_no_conversion):
1922 Make all encoding functions take a Bufbyte * arg.
1923 Use size_t instead of unsigned int for memory sizes.
1924 Only cast to unsigned char whenever dereferencing Extbyte *.
1926 (struct lrecord_description fcd_description_1): Use countof.
1927 (complex_vars_of_file_coding):
1928 Use countof instead of sizeof.
1929 Use CHECK_NATNUM instead of CHECK_INT.
1931 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933 * mule-charset.c (Fget_char_attribute): Add new optional argument
1935 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1936 (remove_char_ccs): Likewise.
1938 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940 * text-coding.c (char_encode_shift_jis): New implementation in
1942 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1945 * mule-charset.c (Vcharset_chinese_big5): New variable in
1947 (Qchinese_big5): New variable in UTF-2000.
1948 (BIG5_SAME_ROW): New macro in UTF-2000.
1949 (make_builtin_char): Use builtin characters of
1950 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1951 characters of `Vcharset_chinese_big5'.
1952 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1953 (complex_vars_of_mule_charset): Add new coded-charset
1954 `chinese-big5' in UTF-2000.
1956 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1957 (Vcharset_chinese_big5): New external variable declaration.
1958 (Vcharset_japanese_jisx0208_1990): Likewise.
1960 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1962 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1964 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1966 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1969 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1970 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1973 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1977 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1979 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1982 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1984 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1985 for `CHARSET_BY_ATTRIBUTES'.
1986 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1987 `CHARSET_BY_ATTRIBUTES'.
1989 * text-coding.c (struct decoding_stream): Rename member `CH' to
1991 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1992 (decode_coding_sjis): Likewise.
1993 (decode_coding_big5): Likewise.
1994 (decode_coding_ucs4): Likewise.
1995 (decode_coding_utf8): Likewise.
1996 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1997 `CHARSET_BY_ATTRIBUTES'.
1998 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1999 `str->counter'; decode 3, 4 bytes sets.
2000 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2002 (decode_coding_no_conversion): Use `str->cpos' instead of
2005 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2006 (Qmojikyo_2022_1): New variable.
2007 (make_charset): Don't use `CHARSET_TYPE_*'.
2008 (range_charset_code_point): Support coded-charset
2010 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2011 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2012 `CHARSET_BY_ATTRIBUTES'.
2013 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2014 `CHARSET_BY_ATTRIBUTES'.
2015 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2016 (complex_vars_of_mule_charset): Add new coded-charset
2019 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2020 interface; changed to inline function.
2022 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2023 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2024 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2025 (CHARSET_TYPE_94): Deleted.
2026 (CHARSET_TYPE_94X94): Deleted.
2027 (CHARSET_TYPE_96): Deleted.
2028 (CHARSET_TYPE_96X96): Deleted.
2029 (CHARSET_TYPE_128): Deleted.
2030 (CHARSET_TYPE_128X128): Deleted.
2031 (CHARSET_TYPE_256): Deleted.
2032 (CHARSET_TYPE_256X256): Deleted.
2033 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2035 (DECODE_MOJIKYO_2022): New inline function.
2036 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2037 `Vcharset_mojikyo_2022_1'.
2039 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2043 (put_byte_table): Likewise.
2044 (char_id_table_equal): Use `get_byte_table' [new implementation].
2046 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048 * mule-charset.c: Include <limits.h> in UTF-2000.
2049 (BT_UINT8_MIN): New macro in UTF-2000.
2050 (BT_UINT8_MAX): New macro in UTF-2000.
2051 (BT_UINT8_t): New macro in UTF-2000.
2052 (BT_UINT8_nil): New macro in UTF-2000.
2053 (BT_UINT8_unbound): New macro in UTF-2000.
2054 (INT_UINT8_P): New inline function in UTF-2000.
2055 (UINT8_VALUE_P): New inline function in UTF-2000.
2056 (UINT8_ENCODE): New inline function in UTF-2000.
2057 (UINT8_DECODE): New inline function in UTF-2000.
2058 (mark_uint8_byte_table): New function in UTF-2000.
2059 (print_uint8_byte_table): New function in UTF-2000.
2060 (uint8_byte_table_equal): New function in UTF-2000.
2061 (uint8_byte_table_hash): New function in UTF-2000.
2062 (make_uint8_byte_table): New function in UTF-2000.
2063 (uint8_byte_table_same_value_p): New function in UTF-2000.
2064 (BT_UINT16_MIN): New macro in UTF-2000.
2065 (BT_UINT16_MAX): New macro in UTF-2000.
2066 (BT_UINT16_t): New macro in UTF-2000.
2067 (BT_UINT16_nil): New macro in UTF-2000.
2068 (BT_UINT16_unbound): New macro in UTF-2000.
2069 (INT_UINT16_P): New inline function in UTF-2000.
2070 (UINT16_VALUE_P): New inline function in UTF-2000.
2071 (UINT16_ENCODE): New inline function in UTF-2000.
2072 (UINT16_DECODE): New inline function in UTF-2000.
2073 (UINT8_TO_UINT16): New inline function in UTF-2000.
2074 (mark_uint16_byte_table): New function in UTF-2000.
2075 (print_uint16_byte_table): New function in UTF-2000.
2076 (uint16_byte_table_equal): New function in UTF-2000.
2077 (uint16_byte_table_hash): New function in UTF-2000.
2078 (make_uint16_byte_table): New function in UTF-2000.
2079 (uint16_byte_table_same_value_p): New function in UTF-2000.
2080 (print_byte_table): New function in UTF-2000.
2081 (byte-table): Use `print_byte_table' as printer.
2082 (make_byte_table): Delete second argument `older'.
2083 (byte_table_same_value_p): New function in UTF-2000.
2084 (copy_byte_table): Deleted.
2085 (get_byte_table): New function in UTF-2000.
2086 (put_byte_table): New function in UTF-2000.
2087 (print_char_id_table): New function in UTF-2000.
2088 (char-id-table): Use `print_char_id_table' as printer.
2089 (make_char_id_table): Delete second argument `older'.
2090 (get_char_id_table): Use `get_byte_table [new implementation].
2091 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2093 (Ffind_char_attribute_table): New function in UTF-2000.
2094 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2095 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2096 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2097 (syms_of_mule_charset): Add new function
2098 `find-char-attribute-table' in UTF-2000.
2100 * lrecord.h (enum lrecord_type): Add
2101 `lrecord_type_uint16_byte_table' and
2102 `lrecord_type_uint8_byte_table'.
2104 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2105 (Lisp_Uint8_Byte_Table): New type.
2106 (XUINT8_BYTE_TABLE): New macro.
2107 (XSETUINT8_BYTE_TABLE): New macro.
2108 (UINT8_BYTE_TABLE_P): New macro.
2109 (GC_UINT8_BYTE_TABLE_P): New macro.
2110 (struct Lisp_Uint16_Byte_Table): New structure.
2111 (Lisp_Uint16_Byte_Table): New type.
2112 (XUINT16_BYTE_TABLE): New macro.
2113 (XSETUINT16_BYTE_TABLE): New macro.
2114 (UINT16_BYTE_TABLE_P): New macro.
2115 (GC_UINT16_BYTE_TABLE_P): New macro.
2117 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2119 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2120 (Vcharacter_ideographic_strokes_table): Deleted.
2121 (Vcharacter_total_strokes_table): Deleted.
2122 (Vcharacter_morohashi_daikanwa_table): Deleted.
2123 (Vcharacter_decomposition_table): Deleted.
2124 (Qname): Deleted because it is duplicated.
2125 (Qideographic_radical): Deleted.
2126 (Qideographic_strokes): Deleted.
2127 (Qtotal_strokes): Deleted.
2128 (Qmorohashi_daikanwa): Deleted.
2129 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2130 `ideographic-radical', `ideographic-strokes', `total-strokes',
2131 `morohashi-daikanwa' and `->decomposition'.
2132 (Fget_char_attribute): Likewise.
2133 (Fput_char_attribute): Likewise; use `make-vector' instead of
2134 `make_older_vector' for `->decomposition' value.
2135 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2136 `ideograph-daikanwa'.
2137 (syms_of_mule_charset): Delete builtin symbols `name',
2138 `ideographic-radical', `ideographic-strokes', `total-strokes' and
2139 `morohashi-daikanwa'.
2140 (vars_of_mule_charset): Don't setup
2141 `Vcharacter_ideographic_radical_table',
2142 `Vcharacter_ideographic_strokes_table',
2143 `Vcharacter_total_strokes_table',
2144 `Vcharacter_morohashi_daikanwa_table' and
2145 `Vcharacter_decomposition_table'.
2147 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2150 `make_older_vector', `make_vector_newer_1' and
2151 `make_vector_newer'.
2153 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2154 `make_older_vector' and `make_vector_newer'.
2156 * config.h.in (HAVE_GGC): New macro.
2158 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160 * mule-charset.c (struct char_attribute_list_closure): New
2161 structure in UTF-2000.
2162 (add_char_attribute_to_list_mapper): New function in UTF-2000.
2163 (Fchar_attribute_list): Likewise.
2164 (Fset_charset_mapping_table): Use `make_vector_newer'.
2165 (Fdecode_builtin_char): New function in UTF-2000.
2166 (syms_of_mule_charset): Add new function `char-attribute-list' and
2167 `decode-builtin-char' in UTF-2000.
2169 * lisp.h (make_vector_newer): New prototype.
2171 * alloc.c (make_vector_newer_1): New function.
2172 (make_vector_newer): New function.
2174 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2179 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181 * mule-charset.c (Vchar_attribute_hash_table): New variable.
2182 (Vcharacter_attribute_table): Deleted.
2183 (Vcharacter_name_table): Deleted.
2184 (put_char_attribute): Deleted.
2185 (remove_char_attribute): Deleted.
2186 (struct char_attribute_alist_closure): New structure.
2187 (add_char_attribute_alist_mapper): New function.
2188 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2189 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2190 (Fget_char_attribute): Likewise.
2191 (Fput_char_attribute): Likewise.
2192 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2193 of `remove_char_attribute'.
2194 (Fdefine_char): Return character.
2195 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2196 and `Vcharacter_name_table'.
2197 (complex_vars_of_mule_charset): Likewise
2198 `Vchar_attribute_hash_table'.
2200 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202 * character.h (CHARC_CHARSET): New macro.
2203 (CHARC_CHARSET_ID): New macro.
2204 (CHARC_CODE_POINT): New macro.
2205 (CHARC_COLUMNS): New macro.
2206 (CHARC_TO_CHAR): New inline function.
2207 (CHARC_EQ): New inline function.
2208 (CHARC_ASCII_EQ): New inline function.
2209 (CHARC_IS_SPACE): New inline function.
2210 (ASCII_TO_CHARC): New inline function.
2212 * char-ucs.h (encode_char_2): Deleted.
2213 (ENCODE_CHAR): Use `encode_char_1' again.
2214 (breakup_char_1): Likewise.
2215 (CHAR_TO_CHARC): New inline function.
2217 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2219 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2222 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2223 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2224 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2225 (create_string_text_block): Use `CHARC_ASCII_EQ' and
2227 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2229 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2231 (x_output_display_block): Use `CHARC_CHARSET' and
2234 * redisplay-tty.c (tty_output_display_block): Use
2236 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2238 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2240 * insdel.c (find_charsets_in_charc_string): Use
2242 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2243 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2244 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2245 (convert_charc_string_into_malloced_string): Likewise.
2247 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2249 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2250 instead of <Emchar_dynarr *> for buf; use
2251 `convert_bufbyte_string_into_charc_dynarr' instead of
2252 `convert_bufbyte_string_into_emchar_dynarr'; use
2253 `find_charsets_in_charc_string' instead of
2254 `find_charsets_in_emchar_string'.
2257 - Include "character.h".
2258 (struct rune): New member `cglyph'; delete member `chr'.
2260 * redisplay.c (redisplay_text_width_charc_string): New function;
2261 delete `redisplay_text_width_emchar_string'.
2262 (rtw_charc_dynarr): New variable; renamed from
2263 `rtw_emchar_dynarr'.
2264 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2265 `rtw_emchar_dynarr'; use
2266 `convert_bufbyte_string_into_charc_dynarr' instead of
2267 `convert_bufbyte_string_into_emchar_dynarr'; use
2268 `redisplay_text_width_charc_string' instead of
2269 `redisplay_text_width_emchar_string'.
2270 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2271 instead of `rtw_emchar_dynarr'; use
2272 `convert_bufbyte_string_into_charc_dynarr' instead of
2273 `convert_bufbyte_string_into_emchar_dynarr'.
2274 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2275 `redisplay_text_width_charc_string' instead of
2276 `redisplay_text_width_emchar_string'.
2277 (create_text_block): Modify for <struct rune> change.
2278 (generate_formatted_string_db): Likewise.
2279 (create_string_text_block): Likewise.
2280 (pixel_to_glyph_translation): Likewise.
2282 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2283 instead of <const Emchar *>.
2284 (x_text_width): Likewise.
2285 (x_output_display_block): Use <Charc_dynarr *> instead
2286 <Emchar_dynarr *>; modify for <structure rune> change.
2287 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2290 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2291 <const Emchar *>; use `charc_string_displayed_columns' instead of
2292 `emchar_string_displayed_columns'.
2293 (tty_output_display_block): Use <Charc_dynarr *> instead of
2294 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2295 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2296 (tty_output_charc_dynarr_dynarr): New variable; renamed from
2297 `tty_output_emchar_dynarr_dynarr'.
2298 (tty_output_charc_dynarr): New function; delete
2299 `tty_output_charc_dynarr'.
2301 * redisplay-output.c (compare_runes): Modify for `struct rune'.
2302 (redisplay_output_layout): Use <Charc_dynarr *> instead of
2303 <Emchar_dynarr *> for buf; use
2304 `convert_bufbyte_string_into_charc_dynarr' instead of
2305 `convert_bufbyte_string_into_emchar_dynarr'.
2307 * frame.c (title_string_charc_dynarr): New variable; renamed from
2308 `title_string_emchar_dynarr'.
2309 (generate_title_string): Use `title_string_charc_dynarr' instead
2310 of `title_string_emchar_dynarr'; use
2311 `convert_charc_string_into_malloced_string' instead of
2312 `convert_emchar_string_into_malloced_string'.
2313 (init_frame): Use `title_string_charc_dynarr' instead of
2314 `title_string_emchar_dynarr'.
2317 - Include "character.h".
2318 (struct console_methods): Use <const Charc *> instead of <const
2319 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2320 <Emchar_dynarr *> in output_string_method.
2322 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2325 * console-stream.c (stream_text_width): Use <const Charc *>
2326 instead of <const Emchar *>.
2328 * character.h (Charc_dynarr): New type.
2330 * char-ucs.h (structure Charc): New structure; define new type
2333 * char-lb.h (DECODE_CHAR): New inline function.
2334 (encode_char_1): New inline function.
2335 (ENCODE_CHAR): New macro.
2336 (structure Charc): New structure; define new type `Charc'.
2338 * char-1byte.h (Vcharset_control_1): New macro.
2339 (Vcharset_latin_iso8859_1): New macro.
2340 (DECODE_CHAR): New inline function.
2341 (encode_char_1): New inline function.
2342 (ENCODE_CHAR): New macro.
2343 (structure Charc): New structure; define new type `Charc'.
2345 * insdel.c (find_charsets_in_charc_string): New function; delete
2346 `find_charsets_in_emchar_string'.
2347 (charc_string_displayed_columns): New function; delete
2348 `emchar_string_displayed_columns'.
2349 (convert_bufbyte_string_into_charc_dynarr): New function; delete
2350 `convert_bufbyte_string_into_emchar_dynarr'.
2351 (convert_charc_string_into_bufbyte_dynarr): New function; delete
2352 `convert_charc_string_into_bufbyte_dynarr'.
2353 (convert_charc_string_into_malloced_string): New function; delete
2354 `convert_charc_string_into_malloced_string'.
2356 * buffer.h (find_charsets_in_charc_string): New prototype; delete
2357 `find_charsets_in_emchar_string'.
2358 (charc_string_displayed_columns): New prototype; delete
2359 `emchar_string_displayed_columns'.
2360 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2361 `convert_charc_string_into_bufbyte_dynarr'.
2362 (convert_charc_string_into_malloced_string): New prototype; delete
2363 `convert_charc_string_into_malloced_string'.
2365 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2369 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2371 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2373 * char-ucs.h: Use <short> for <Charset_ID>.
2375 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2378 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2380 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2383 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2387 (Qmorohashi_daikanwa): New variable.
2388 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2389 for `morohashi-daikanwa' attribute.
2390 (Fget_char_attribute): Likewise.
2391 (Fput_char_attribute): Likewise.
2392 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2393 has the same value of `ideograph-daikanwa'.
2394 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2395 (vars_of_mule_charset): Setup
2396 `Vcharacter_morohashi_daikanwa_table'.
2398 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2402 (add_charset_to_list_mapper): Add `key' instead of
2403 `XCHARSET_NAME (value)' to return aliases.
2405 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2409 (Vcharacter_ideographic_strokes_table): New variable.
2410 (Qideographic_radical): New variable.
2411 (Qideographic_strokes): New variable.
2412 (Fchar_attribute_alist): Use
2413 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2414 attribute; use `Vcharacter_ideographic_strokes_table' for
2415 `ideographic-strokes' attribute.
2416 (Fget_char_attribute): Likewise.
2417 (Fput_char_attribute): Likewise.
2418 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2419 `ideographic-strokes'.
2420 (vars_of_mule_charset): Setup
2421 `Vcharacter_ideographic_radical_table' and
2422 `Vcharacter_ideographic_strokes_table'.
2424 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2426 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2427 (Qtotal_strokes): New variable.
2428 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2429 `total-strokes' attribute.
2430 (Fget_char_attribute): Likewise.
2431 (Fput_char_attribute): Likewise.
2432 (syms_of_mule_charset): Add new symbol `total-strokes'.
2433 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2435 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2437 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2438 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2440 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2441 `->decomposition' attribute.
2442 (Fput_char_attribute): Likewise.
2443 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2445 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447 * mule-charset.c (decoding_table_check_elements): New function.
2448 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2450 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452 * mule-charset.c (Fset_charset_mapping_table): Use
2453 `put_char_ccs_code_point'.
2455 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457 * mule-charset.c (decoding_table_put_char): New inline function.
2458 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2460 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2463 (XCHARSET_BYTE_SIZE): New macro.
2464 (decoding_table_remove_char): New inline function.
2465 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2466 `decoding_table_remove_char'.
2467 (remove_char_ccs): Use `decoding_table_remove_char'.
2468 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2470 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2472 * mule-charset.c (Vcharacter_name_table): New variable.
2473 (Qname): New variable.
2474 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2476 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2477 `Vcharacter_name_table' for `name' attribute.
2478 (Fremove_char_attribute): Use function `remove_char_ccs'.
2479 (put_char_ccs_code_point): New function.
2480 (remove_char_ccs): New function.
2481 (syms_of_mule_charset): Add new symbol `name'.
2482 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2484 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486 * mule-charset.c (make_byte_table): Add new argument `older'.
2487 (make_char_id_table): Likewise.
2488 (copy_char_id_table): Comment out because it is not used.
2489 (put_char_id_table): Modify for `make_byte_table'.
2490 (Fput_char_attribute): Make encoding_table as older object;
2491 inherit older bit of `Vcharacter_composition_table'.
2492 (mark_charset): Don't mark `cs->encoding_table'.
2493 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2494 normal object; make `Vcharacter_composition_table' as an older
2495 object; delete staticpro for `Vcharacter_composition_table'; make
2496 `Vcharacter_variant_table' as a normal object.
2498 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2499 (mark_object): Don't check older object in UTF-2000.
2501 * lrecord.h (struct lrecord_header): Add new member `older' in
2503 (set_lheader_implementation): Setup `SLI_header->older' in
2505 (set_lheader_older_implementation): New macro in UTF-2000.
2506 (OLDER_RECORD_P): New macro in UTF-2000.
2507 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2508 (alloc_older_lcrecord): New prototype in UTF-2000.
2509 (alloc_older_lcrecord_type): New macro in UTF-2000.
2511 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2513 * mule-charset.c (byte_table_description): Use
2514 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2515 (char_id_table_description): Delete bogus `, 1'.
2516 (Fget_char_attribute): Refer encoding_table of each coded-charset
2517 to get value of coded-charset attribute of a character.
2518 (Fput_char_attribute): Use `make_older_vector' instead of
2519 `make_vector'; use encoding_table of each coded-charset to store
2520 value of coded-charset attribute of a character.
2521 (Fremove_char_attribute): Use encoding_table of each coded-charset
2522 to store value of coded-charset attribute of a character.
2523 (mark_charset): Mark `cs->encoding_table'; don't mark
2524 `cs->decoding_table'.
2525 (charset_description): Add description of new member
2527 (make_charset): Initialize `encoding_table'.
2529 * char-ucs.h (struct Lisp_Charset): Add new member
2531 (CHARSET_ENCODING_TABLE): New macro.
2532 (XCHARSET_ENCODING_TABLE): New macro.
2533 (charset_code_point): New implementation.
2534 (encode_char_1): Likewise.
2536 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2537 (disksave_object_finalization_1): Call finalizers of
2538 `all_older_lcrecords' in UTF-2000.
2539 (make_older_vector): New function in UTF-2000.
2540 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2543 * lisp.h (make_older_vector): New prototype in UTF-2000.
2545 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547 * lrecord.h (enum lrecord_type): Rename
2548 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2550 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2551 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2552 `get_char_code_table'.
2554 * mule-charset.c (mark_char_id_table): Renamed from
2555 `mark_char_code_table'.
2556 (char_id_table_equal): Renamed from `char_code_table_equal'.
2557 (char_id_table_hash): Renamed from `char_code_table_hash'.
2558 (make_char_id_table): Renamed from `make_char_code_table'.
2559 (copy_char_id_table): Renamed from `copy_char_code_table'.
2560 (get_char_id_table): Renamed from `get_char_code_table'.
2561 (put_char_id_table): Renamed from `put_char_code_table'.
2562 (to_char_id): Renamed from `to_char_code'.
2564 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2565 `Lisp_Char_Code_Table'.
2566 (char_id_table): Renamed from `char_code_table'.
2567 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2568 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2569 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2570 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2571 (get_char_id_table): Renamed from `get_char_code_table'.
2573 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575 * lrecord.h (enum lrecord_type): Rename
2576 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2578 * mule-charset.c (mark_byte_table): Renamed from
2579 `mark_char_byte_table'.
2580 (byte_table_equal): Renamed from `char_byte_table_equal'.
2581 (byte_table_hash): Renamed from `byte_table_hash'.
2582 (make_byte_table): Renamed from `make_byte_table'.
2583 (copy_byte_table): Renamed from `copy_char_byte_table'.
2585 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2586 `Lisp_Char_Byte_Table'.
2587 (byte_table): Renamed from `char_byte_table'.
2588 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2589 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2590 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2591 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2593 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2595 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2596 (dfc_convert_to_internal_format): Likewise.
2598 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2599 * text-coding.c (Fcoding_system_alias_p): New function.
2600 * text-coding.c (Fcoding_system_aliasee): New function.
2601 * text-coding.c (append_suffix_to_symbol): New function.
2602 * text-coding.c (dangling_coding_system_alias_p): New function.
2603 * text-coding.c (Ffind_coding_system):
2604 * text-coding.c (Fcopy_coding_system):
2605 * text-coding.c (encode_coding_no_conversion):
2606 * text-coding.c (syms_of_file_coding):
2607 * text-coding.c (vars_of_file_coding):
2608 Rewrite coding system alias code.
2609 Allow nested aliases, like symbolic links.
2610 Allow redefinition of coding system aliases.
2611 Prevent existence of dangling coding system aliases.
2612 Eliminate convert_to_external_format.
2613 Eliminate convert_to_internal_format.
2615 * text-coding.c: Change enum eol_type to eol_type_t.
2617 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2620 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2622 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2623 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2625 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2628 `ideograph-daikanwa'.
2630 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2631 (Vcharset_ucs_bmp): Likewise.
2632 (Vcharset_mojikyo): Add new extern variable definition.
2633 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2634 (Vcharset_latin_iso8859_3): Likewise.
2635 (Vcharset_latin_iso8859_4): Likewise.
2636 (Vcharset_latin_iso8859_9): Likewise.
2637 (Vcharset_latin_viscii_lower): Likewise.
2638 (Vcharset_latin_viscii_upper): Likewise.
2639 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2640 `mojikyo' code-point is used to decode.
2641 (encode_char_2): New function [to convert `mojikyo' code-point to
2642 Mojikyo font encoding].
2643 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2644 (breakup_char_1): Likewise.
2645 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2647 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649 * text-coding.c (Fmake_coding_system): Add document about
2650 `disable-composition' property.
2652 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654 * text-coding.c (Qdisable_composition): New variable; delete
2656 (Fmake_coding_system): Add new property `disable-composite';
2657 delete property `composite'.
2658 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2659 instead of `!CODING_SYSTEM_COMPOSITE'.
2660 (syms_of_file_coding): Add new symbol `disable-composition';
2661 delete symbol `composite'.
2663 * file-coding.h (struct Lisp_Coding_System): Add
2664 `disable_composition'; delete `enable_composition'.
2665 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2666 `CODING_SYSTEM_COMPOSITE'.
2667 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2668 `XCODING_SYSTEM_COMPOSITE'.
2670 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2675 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677 * text-coding.c (Qcomposite): New variable.
2678 (Fmake_coding_system): Add new property `composite'.
2679 (struct decoding_stream): Add `combined_char_count',
2680 `combined_chars' and `combining_table' in UTF-2000.
2681 (COMPOSE_FLUSH_CHARS): New macro.
2682 (COMPOSE_ADD_CHAR): New macro.
2683 (reset_decoding_stream): Reset `str->combined_char_count' and
2684 `str->combining_table' in UTF-2000.
2685 (decode_coding_iso2022): Modify for character-decomposition.
2686 (syms_of_file_coding): Add new symbol `composite'.
2688 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2690 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2691 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2692 of `Vcharacter_composition_table' if `->decomposition' property
2694 (Qlatin_tcvn5712): New variable.
2695 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2696 (complex_vars_of_mule_charset): Add new coded-charset
2699 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2701 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703 * file-coding.h (struct Lisp_Coding_System): Add
2704 `enable_composition'.
2705 (CODING_SYSTEM_COMPOSITE): New macro.
2706 (XCODING_SYSTEM_COMPOSITE): New macro.
2708 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2710 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2712 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2714 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2715 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2717 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2719 * mule-charset.c (Vcharset_mojikyo): New variable.
2720 (Fdefine_char): Don't use coded-charset which does not have
2721 non-builtin character range to allocate character-id.
2722 (Qmojikyo): New variable.
2723 (syms_of_mule_charset): Add new symbol `mojikyo'.
2724 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2726 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2727 (LEADING_BYTE_MOJIKYO): New macro.
2728 (MIN_CHAR_MOJIKYO): New macro.
2729 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2730 (MAX_CHAR_MOJIKYO): New macro.
2732 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2734 * mule-charset.c (remove_char_attribute): Fixed.
2736 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2738 * mule-charset.c (remove_char_attribute): New function.
2739 (Fremove_char_attribute): New function.
2740 (encode_builtin_char_1): Comment out builtin-support for
2741 greek-iso8859-7 and cyrillic-iso8859-5.
2742 (Fdecode_char): Check `code' is an integer.
2743 (syms_of_mule_charset): Add `remove-char-attribute'.
2744 (MIN_CHAR_GREEK): Deleted.
2745 (MAX_CHAR_GREEK): Likewise.
2746 (MIN_CHAR_CYRILLIC): Likewise.
2747 (MAX_CHAR_CYRILLIC): Likewise.
2748 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2749 MAX_CHAR_GREEK for `greek-iso8859-7'.
2751 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2752 (MAX_CHAR_GREEK): Likewise.
2753 (MIN_CHAR_CYRILLIC): Likewise.
2754 (MAX_CHAR_CYRILLIC): Likewise.
2756 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2758 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2759 format is used without `ucs' property.
2760 (Fdecode_char): Fix problem with GR representation.
2761 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2762 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2764 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2766 * mule-charset.c (make_builtin_char): New function.
2767 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2768 (Fset_charset_mapping_table): Modify for new representation of
2770 (Fdecode_char): New function.
2771 (syms_of_mule_charset): Add new builtin function `decode-char' in
2774 * char-ucs.h (make_builtin_char): New prototype.
2775 (DECODE_CHAR): New inline function.
2776 (MAKE_CHAR): Use `DECODE_CHAR'.
2778 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2780 * text-coding.c (parse_charset_conversion_specs): Use
2781 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2783 (iso2022_designate): Likewise.
2785 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2786 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2788 * mule-charset.c (Vcharset_ucs): New variable.
2789 (print_charset): Change design; use `CHARSET_CHARS' and
2790 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2791 (make_charset): Change signature to specify `chars' and
2792 `dimension' instead of `type'.
2793 (range_charset_code_point): Modify for 256^n-set.
2794 (encode_builtin_char_1): Encode as `ucs' in default.
2795 (Fmake_charset): Modify for `make_charset'.
2796 (Fmake_reverse_direction_charset): Likewise.
2797 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2799 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2802 * char-ucs.h (Vcharset_ucs): New variable.
2803 (LEADING_BYTE_UCS): New macro.
2804 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2805 and `chars' to `unsigned short' from `unsigned int'.
2806 (CHARSET_TYPE): Deleted.
2807 (XCHARSET_TYPE): Deleted.
2809 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2811 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2813 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2814 (ENCODE_CHAR): New macro.
2816 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2818 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2819 to 0.14 (Kawachi-Katakami).
2821 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2823 * text-coding.c (char_encode_shift_jis): Modify for
2824 `charset_code_point'.
2825 (char_encode_iso2022): Likewise.
2827 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2828 (integer) instead of list of <Lisp_Object>s (integers) as the
2829 format of code-point of a coded-charset.
2830 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2831 (encode_builtin_char_1): New function; delete
2832 `split_builtin_char'.
2833 (charset_code_point): Return <int> instead of <Lisp_Object>.
2834 (Fsplit_char): Don't use `SPLIT_CHAR'.
2836 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2837 prototype for `split_builtin_char'.
2838 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2839 (charset_code_point): Likewise.
2840 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2841 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2843 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2845 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2846 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2848 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2850 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2852 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2853 (MAX_CHAR_OBS_94x94): Deleted.
2855 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2857 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2859 * char-ucs.h (MAX_CHAR_BMP): New macro.
2861 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2863 * text-coding.c: Sync with r21-2-24.
2865 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2867 * file-coding.c: Modify for UTF-2000.
2869 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2871 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2874 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2876 * mule-charset.c (split_builtin_char): Delete builtin support for
2877 `katakana-jisx0201'.
2878 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2879 BMP area in builtin representation.
2881 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2882 `Vcharset_katakana_jisx0201'.
2884 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2886 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2887 (Qisolated): New variable.
2888 (Qinitial): New variable.
2889 (Qmedial): New variable.
2890 (Qfinal): New variable.
2891 (Qvertical): New variable.
2892 (Qsmall): New variable.
2893 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2894 `Qvertical' and `Qsmall'.
2895 (Qmojikyo_pj_[1 .. 21]): New variable.
2896 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2897 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2898 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2901 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2903 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2904 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2905 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2907 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2909 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2910 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2912 (Qjapanese_jisx0208_1990): New variable.
2913 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2914 (complex_vars_of_mule_charset): Add new coded-charset
2915 `japanese-jisx0208-1990'.
2917 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2918 (MIN_CHAR_JIS_X0208_1990): New macro.
2919 (MAX_CHAR_JIS_X0208_1990): New macro.
2921 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2923 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2924 coded-charset is not found.
2926 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2928 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2929 (Fdefine_char): Use `Fmake_char'.
2931 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2933 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2934 (Vcharset_hiragana_jisx0208): Deleted.
2935 (Vcharset_katakana_jisx0208): Deleted.
2936 (Qideograph_daikanwa): New variable.
2937 (Qhiragana_jisx0208): Deleted.
2938 (Qkatakana_jisx0208): Deleted.
2939 (split_builtin_char): Split `ideograph-daikanwa'.
2940 (Fsplit_char): New implementation for UTF-2000.
2941 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2942 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2943 (complex_vars_of_mule_charset): Add new coded-charset
2944 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2945 `katakana-jisx0208'.
2947 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2948 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2949 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2950 (MIN_CHAR_DAIKANWA): New macro.
2951 (MAX_CHAR_DAIKANWA): New macro.
2953 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2955 * data.c (Fstring_to_number): Don't recognize floating point if
2958 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2960 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2962 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2964 * mule-charset.c (Qsquare): New variable.
2965 (to_char_code): Add `Qsquare'.
2966 (syms_of_mule_charset): Add new symbol `square'.
2968 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2970 * mule-charset.c (Qcircle): New variable.
2971 (to_char_code): Add `Qcircle'.
2972 (syms_of_mule_charset): Add new symbol `circle'.
2974 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2976 * mule-charset.c (Qfont): New variable.
2977 (to_char_code): Add `Qfont'.
2978 (syms_of_mule_charset): Add new symbol `font'.
2980 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2982 * mule-charset.c (Qsub): New variable.
2983 (to_char_code): Add `Qsub'.
2984 (syms_of_mule_charset): Add new symbol `sub'.
2986 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2988 * mule-charset.c (Fput_char_attribute): Convert each element of
2989 VALUE to GL position if ATTRIBUTE is a GR-set,
2991 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2993 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2994 coded-charset is a GR-set.
2996 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2998 * mule-charset.c (Fput_char_attribute): Check each element of
2999 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3001 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3003 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3005 (Qethiopic_ucs): New variable in UTF-2000.
3006 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3007 (complex_vars_of_mule_charset): Add new coded-charset
3008 `ethiopic-ucs' in UTF-2000.
3010 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3011 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3013 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3015 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3017 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3019 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3022 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3024 * mule-charset.c (Vcharacter_variant_table): New variable.
3025 (Q_ucs): New variable.
3026 (Fchar_variants): New function.
3027 (Fput_char_attribute): Register `->ucs' value to
3028 `Vcharacter_variant_table'.
3029 (syms_of_mule_charset): Add new function `char-variants' and new
3031 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3033 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3035 * mule-charset.c (get_char_code_table): Allow negative character
3037 (put_char_code_table): Likewise.
3038 (Vcharacter_composition_table): New variable.
3039 (Q_decomposition): New variable.
3040 (Qwide): New variable.
3041 (Qnarrow): New variable.
3042 (Qcompat): New variable.
3043 (QnoBreak): New variable.
3044 (Qsuper): New variable.
3045 (Qfraction): New variable.
3046 (to_char_code): New function.
3047 (Fget_composite_char): New function.
3048 (Fput_char_attribute): Register `->decomposition' value to
3049 `Vcharacter_composition_table'.
3050 (syms_of_mule_charset): Add new function `get-composite-char', new
3051 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3052 `super' and `fraction'.
3053 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3055 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3057 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3058 character; copy the return value.
3060 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3062 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3064 * mule-charset.c (range_charset_code_point): Must use make_int.
3065 (split_builtin_char): New function.
3067 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3069 * mule-charset.c (char_byte_table): Change name from
3070 "char-code-table" to "char-byte-table".
3071 (mark_char_code_table): New function.
3072 (char_code_table_equal): New function.
3073 (char_code_table_hash): New function.
3074 (char_code_table_description): New constant.
3075 (char_code_table): New type.
3076 (make_char_code_table): New function.
3077 (copy_char_code_table): New function.
3078 (get_char_code_table): Modify for `char_code_table' type.
3079 (put_char_code_table): Likewise.
3080 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3083 * char-ucs.h (char_code_table): New type.
3084 (XCHAR_CODE_TABLE): New macro.
3085 (XSETCHAR_CODE_TABLE): New macro.
3086 (CHAR_CODE_TABLE_P): New macro.
3087 (GC_CHAR_CODE_TABLE_P): New macro.
3088 (struct Lisp_Char_Code_Table): New structure.
3090 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3092 * mule-charset.c (Fmake_charset): Setup byte_offset for
3095 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
3097 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3100 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3102 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3105 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3107 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3108 charset, it is regarded as a charset.
3109 (put_char_attribute): New function in UTF-2000.
3110 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3111 charset, mapping-table of the charset is modified.
3112 (Fdefine_char): New function in UTF-2000.
3113 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3114 `Fput_char_attribute'.
3115 (syms_of_mule_charset): Add new function `define-char' and new
3116 symbol `ucs' in UTF-2000.
3117 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3119 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3121 * mule-charset.c (Fcharset_name): Define `byte_offset' in
3122 non-UTF-2000 configuration.
3124 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3126 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3127 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3129 * mule-charset.c (mark_charset): `cs->encoding_table' has been
3131 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3132 (Fset_charset_mapping_table): Likewise.
3134 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3135 (CHARSET_ENCODING_TABLE): Delete.
3136 (XCHARSET_ENCODING_TABLE): Delete.
3137 (charset_code_point): New interface.
3139 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3141 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3142 instead of `charset_get_byte1' and `charset_get_byte2'.
3144 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3145 (charset_get_byte2): Deleted.
3147 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3149 * char-ucs.h (SPLIT_CHAR): New inline function.
3150 (breakup_char_1): Use `SPLIT_CHAR'.
3152 * mule-charset.c (range_charset_code_point): New function.
3153 (charset_code_point): New function.
3155 * char-ucs.h (range_charset_code_point): New interface.
3156 (breakup_char_1): Use `range_charset_code_point'.
3158 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3160 * mule-charset.c (Fmake_charset): Delete unused local variable
3163 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3164 (breakup_char_1): Find a charset and code-point in
3165 `Vcharacter_attribute_table'.
3167 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3169 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3172 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3174 * mule-charset.c (Vcharacter_attribute_table): New variable.
3175 (Fchar_attribute_alist): New function.
3176 (Fget_char_attribute): New function.
3177 (Fput_char_attribute): New function.
3178 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3180 (syms_of_mule_charset): Add new function `char-attribute-alist',
3181 `get-char-attribute' and `put-char-attribute'.
3182 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3184 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
3186 * mule-charset.c (Fmake_charset): Just use
3187 `get_unallocated_leading_byte'.
3189 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3190 sets; don't use final-byte based number for private sets.
3192 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3194 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3197 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
3199 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3202 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3204 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3205 of `CHAR_LEADING_BYTE' in UTF-2000.
3207 * insdel.c (find_charsets_in_bufbyte_string): Use
3208 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3209 (find_charsets_in_emchar_string): Likewise.
3211 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3212 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3214 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3215 (CHAR_CHARSET_ID): New macro.
3217 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3219 * chartab.c (get_char_table): Don't use type `Charset_ID' for
3220 charset-id - MIN_LEADING_BYTE.
3221 (put_char_table): Likewise.
3223 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3225 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3226 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3227 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3228 (CHARSET_ID_OFFSET): New macro.
3229 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3230 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3231 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3232 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3234 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3236 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3237 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3238 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3239 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3240 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3242 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3244 * mule-charset.c (next_allocated_leading_byte): New variable in
3246 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3247 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3248 (get_unallocated_leading_byte): Simply use
3249 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3250 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3253 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3254 (MAX_LEADING_BYTE_PRIVATE): New macro.
3255 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3256 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3258 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3260 * mule-charset.c (Fmake_charset): Allocate final-byte based
3261 charset-id for 94-set, 96-set and 94x94-set.
3263 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3265 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3267 (Fmake_charset): Likewise.
3268 (complex_vars_of_mule_charset): Modify the font registry of
3269 `ucs-bmp' not to match `Ethiopic-Unicode'.
3271 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3273 * mule-charset.c (complex_vars_of_mule_charset): Add font
3274 registory of `ucs-bmp'.
3276 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3278 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3279 coded-charsets in `default-coded-charset-priority-list' when
3280 breaking up a character.
3282 * mule-charset.c (Vcharset_latin_viscii): New variable.
3283 (Qlatin_viscii): New variable.
3284 (make_charset): Don't use `decoding_table'.
3285 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3287 (Fset_charset_mapping_table): New implementation.
3288 (syms_of_mule_charset): Add new symbol `latin-viscii'.
3289 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3290 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3291 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3292 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3293 charset `latin_viscii'.
3295 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3296 (CHARSET_TYPE_94X94): Change to 1 from 2.
3297 (CHARSET_TYPE_96): Change to 2 from 1.
3298 (CHARSET_TYPE_128): New macro.
3299 (CHARSET_TYPE_128X128): Change to 5 from 4.
3300 (CHARSET_TYPE_256): New macro.
3301 (CHARSET_TYPE_256X256): Change to 7 from 5.
3302 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3304 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
3306 * text-coding.c (char_encode_shift_jis): Refer
3307 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3308 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3310 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3311 (char_byte_table_equal): New function in UTF-2000.
3312 (char_byte_table_hash): New function in UTF-2000.
3313 (char_byte_table_description): New constant in UTF-2000.
3314 (char_byte_table): New type in UTF-2000.
3315 (make_char_byte_table): New function in UTF-2000.
3316 (copy_char_byte_table): New function in UTF-2000.
3317 (make_char_code_table): New macro in UTF-2000.
3318 (get_char_code_table): New function in UTF-2000.
3319 (put_char_code_table): New function in UTF-2000.
3320 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3321 (charset_description): Add setting in UTF-2000.
3322 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3323 `CHARSET_TO_BYTE1_TABLE(cs)'.
3324 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3325 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3326 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3327 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3328 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3329 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3330 `CHARSET_TO_BYTE2_TABLE(cs)'.
3332 * char-ucs.h (char_byte_table): New type.
3333 (XCHAR_BYTE_TABLE): New macro.
3334 (XSETCHAR_BYTE_TABLE): New macro.
3335 (CHAR_BYTE_TABLE_P): New macro.
3336 (GC_CHAR_BYTE_TABLE_P): New macro.
3337 (struct Lisp_Char_Byte_Table): New structure.
3338 (get_char_code_table): New interface.
3339 (Emchar_to_byte_table): Deleted.
3340 (get_byte_from_character_table): Deleted.
3341 (struct Lisp_Charset): Add `encoding_table'; delete
3342 `to_byte1_table' and `to_byte2_table'.
3343 (CHARSET_ENCODING_TABLE): New macro.
3344 (CHARSET_TO_BYTE1_TABLE): Deleted.
3345 (CHARSET_TO_BYTE2_TABLE): Deleted.
3346 (XCHARSET_ENCODING_TABLE): New macro.
3347 (XCHARSET_TO_BYTE1_TABLE): Deleted.
3348 (XCHARSET_TO_BYTE2_TABLE): Deleted.
3350 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3352 * mule-charset.c (syms_of_mule_charset): Delete charset alias
3353 `vietnamese-viscii-*'.
3355 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3357 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3358 (Qvietnamese_viscii_upper): New variable.
3359 (Fdefine_charset_alias): New function.
3360 (syms_of_mule_charset): Add new function `define-charset-alias'.
3361 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3362 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3365 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
3367 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3368 (MAX_CHAR_OBS_94x94): New macro.
3369 (breakup_char_1): Support obsolete XEmacs-UCS private code space
3372 * mule-charset.c (put_byte_from_character_table): Change unit size
3374 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3376 (Fmake_reverse_direction_charset): Modify dummy argument of
3377 `make_charset' for non-UTF-2000 environment.
3379 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3381 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3383 * mule-charset.c (destroy_byte_from_character_table): New macro.
3384 (latin_jisx0201_to_ucs): Deleted.
3385 (latin_iso8859_2_to_ucs): Deleted.
3386 (latin_iso8859_3_to_ucs): Deleted.
3387 (latin_iso8859_4_to_ucs): Deleted.
3388 (latin_iso8859_9_to_ucs): Deleted.
3389 (latin_viscii_lower_to_ucs): Deleted.
3390 (latin_viscii_upper_to_ucs): Deleted.
3391 (mark_charset): Mark `cs->decoding_table'.
3392 (Fcharset_mapping_table): Fix DOC-string.
3393 (Fset_charset_mapping_table): New function.
3394 (syms_of_mule_charset): Add nwe function
3395 `set-charset-mapping-table'.
3396 (complex_vars_of_mule_charset): Don't setup and use
3399 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3401 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3404 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3406 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3407 (Vcharset_katakana_jisx0208): New variable.
3408 (Qhiragana_jisx0208): New variable.
3409 (Qkatakana_jisx0208): New variable.
3410 (make_charset): Add new argument `byte_offset'.
3411 (charset_get_byte1): Modify for new coded-charset definition; use
3412 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3413 `XCHARSET_BYTE_OFFSET'.
3414 (Fmake_charset): Modify for `make_charset'.
3415 (Fmake_reverse_direction_charset): Likewise.
3416 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3417 `katakana-jisx0208'.
3418 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3419 `.' in font registry of charset `katakana-jisx0201',
3420 `latin-jisx0201', `vietnamese-viscii-lower' and
3421 `vietnamese-viscii-upper'; modify DOC-string of charset
3422 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3423 registry of charset `japanese-jisx0208' not to use font for JIS
3424 X0208:1990; add new charset `hiragana-jisx0208' and
3425 `katakana-jisx0208'.
3427 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3428 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3429 (struct Lisp_Charset): Add `byte_offset'.
3430 (CHARSET_BYTE_OFFSET): New macro.
3431 (XCHARSET_UCS_MIN): New macro.
3432 (XCHARSET_UCS_MAX): New macro.
3433 (XCHARSET_CODE_OFFSET): New macro.
3434 (XCHARSET_BYTE_OFFSET): New macro.
3435 (MIN_CHAR_HIRAGANA): New macro.
3436 (MAX_CHAR_HIRAGANA): New macro.
3437 (MIN_CHAR_KATAKANA): New macro.
3438 (MAX_CHAR_KATAKANA): New macro.
3439 (MAKE_CHAR): Modify for new coded-charset definition; use
3440 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3441 `XCHARSET_BYTE_OFFSET'.
3443 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3445 * mule-charset.c (CHAR96): Deleted.
3446 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3448 (latin_iso8859_2_to_ucs): Likewise.
3449 (latin_iso8859_3_to_ucs): Likewise.
3450 (latin_iso8859_4_to_ucs): Likewise.
3451 (latin_iso8859_9_to_ucs): Likewise.
3452 (latin_viscii_lower_to_ucs): Likewise.
3453 (latin_viscii_upper_to_ucs): Likewise.
3454 (latin_tcvn5712_to_ucs): Commented out.
3455 (make_charset): Change type of argument `decoding_table' from
3456 <Emchar*> to <Lisp_Object> [vector of characters].
3457 (Fmake_charset): Modify for `make_charset'.
3458 (Fmake_reverse_direction_charset): Likewise.
3459 (Fcharset_mapping_table): New function in UTF-2000.
3460 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3462 (complex_vars_of_mule_charset): Modify for type change of
3463 `*_to_ucs'; modify for `make_charset'.
3465 * char-ucs.h (struct Lisp_Charset): Change type of
3466 `decoding_table' from <Emchar*> to <Lisp_Object>.
3467 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3469 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3471 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3472 error with non-UTF-2000-Mule.
3474 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3476 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3478 (Vcharset_chinese_cns11643_4): Likewise.
3479 (Vcharset_chinese_cns11643_5): Likewise.
3480 (Vcharset_chinese_cns11643_6): Likewise.
3481 (Vcharset_chinese_cns11643_7): Likewise.
3482 (Qchinese_cns11643_3): Likewise.
3483 (Qchinese_cns11643_4): Likewise.
3484 (Qchinese_cns11643_5): Likewise.
3485 (Qchinese_cns11643_6): Likewise.
3486 (Qchinese_cns11643_7): Likewise.
3487 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3488 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3489 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3490 (complex_vars_of_mule_charset): Likewise.
3492 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3494 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3496 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3497 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3499 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3501 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3503 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3504 (breakup_char_1): Likewise.
3506 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3507 one of them includes the specified character.
3509 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3511 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3513 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3515 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3517 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3519 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3520 definition for non-UTF-2000 Mule.
3521 (latin_iso8859_3_to_ucs): Likewise.
3522 (latin_iso8859_4_to_ucs): Likewise.
3523 (latin_iso8859_9_to_ucs): Likewise.
3524 (latin_jisx0201_to_ucs): Likewise.
3525 (MIN_CHAR_THAI): Likewise.
3526 (MAX_CHAR_THAI): Likewise.
3527 (MIN_CHAR_GREEK): Likewise.
3528 (MAX_CHAR_GREEK): Likewise.
3529 (MIN_CHAR_HEBREW): Likewise.
3530 (MAX_CHAR_HEBREW): Likewise.
3531 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3532 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3533 (MIN_CHAR_CYRILLIC): Likewise.
3534 (MAX_CHAR_CYRILLIC): Likewise.
3536 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3538 * char-ucs.h (breakup_char_1): Use
3539 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3540 thai-tis620 and katakana-jisx0201 area.
3542 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3544 * char-ucs.h (breakup_char_1): Use
3545 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3548 * text-coding.c (reset_encoding_stream): Fixed.
3549 (char_encode_ucs4): Delete `& 255'.
3551 * char-ucs.h (breakup_char_1): Use
3552 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3554 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3556 * file-coding.c (Fmake_coding_system): Don't set up
3557 `codesys->fixed.size'.
3558 (encode_coding_no_conversion): Don't refer
3559 `str->codesys->fixed.size'.
3561 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3563 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3564 (latin_a_char_to_byte1): Deleted.
3565 (latin_a_char_to_byte2): Deleted.
3567 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3569 * mule-charset.c (make_charset): Add new argument `ucs_min',
3570 `ucs_max' and `code_offset'.
3571 (charset_get_byte1): New implementation [delete specific charset
3572 depended implementations].
3573 (Fmake_charset): Modify for `make_charset'.
3574 (Fmake_reverse_direction_charset): Likewise.
3575 (complex_vars_of_mule_charset): Likewise.
3577 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3579 (CHARSET_UCS_MIN): New macro.
3580 (CHARSET_UCS_MAX): New macro.
3581 (CHARSET_CODE_OFFSET): New macro.
3582 (MAKE_CHAR): Delete charset depended definitions [except
3585 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3587 * char-ucs.h (breakup_char_1): Use
3588 `Vdefault_coded_charset_priority_list' for C0-Controls,
3589 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3591 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3593 * char-ucs.h (charset_get_byte1): New function.
3594 (XCHARSET_GET_BYTE1): Deleted.
3595 (charset_get_byte2): New function.
3596 (XCHARSET_GET_BYTE2): Deleted.
3597 (Vdefault_coded_charset_priority_list): New external variable.
3598 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3599 `Vdefault_preferred_coded_charset_list'.
3601 * mule-charset.c (charset_get_byte1): New function.
3602 (charset_get_byte2): New function.
3603 (Vdefault_coded_charset_priority_list): New variable.
3604 (vars_of_mule_charset): Add new variable
3605 `default-coded-charset-priority-list'.
3607 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3609 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3610 (XCHARSET_GET_BYTE2): New inline function.
3611 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3612 `XCHARSET_GET_BYTE2'.
3614 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3616 * mule-charset.c (make_charset): Initialize
3617 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3618 NULL if table is not defined.
3620 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3622 * text-coding.c (char_encode_shift_jis): Use
3623 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3624 `ucs_to_latin_jisx0201'.
3626 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3627 (ucs_to_latin_iso8859_2): Deleted.
3628 (ucs_to_latin_iso8859_3): Deleted.
3629 (ucs_to_latin_iso8859_4): Deleted.
3630 (ucs_to_latin_iso8859_9): Deleted.
3631 (ucs_to_latin_viscii_lower): Deleted.
3632 (ucs_to_latin_viscii_upper): Deleted.
3633 (ucs_to_latin_tcvn5712): Deleted.
3634 (make_charset): Add new argument `decoding_table'; set up
3635 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3636 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3637 `decoding_table' is defined in UTF-2000.
3638 (Fmake_charset): Modify for `make_charset'.
3639 (Fmake_reverse_direction_charset): Likewise.
3640 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3641 and `GENERATE_96_SET'.
3643 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3644 (ucs_to_latin_jisx0201): Deleted.
3645 (latin_iso8859_2_to_ucs): Deleted.
3646 (ucs_to_latin_iso8859_2): Deleted.
3647 (latin_iso8859_3_to_ucs): Deleted.
3648 (ucs_to_latin_iso8859_3): Deleted.
3649 (latin_iso8859_4_to_ucs): Deleted.
3650 (ucs_to_latin_iso8859_4): Deleted.
3651 (latin_iso8859_9_to_ucs): Deleted.
3652 (ucs_to_latin_iso8859_9): Deleted.
3653 (latin_viscii_lower_to_ucs): Deleted.
3654 (ucs_to_latin_viscii_lower): Deleted.
3655 (latin_viscii_upper_to_ucs): Deleted.
3656 (ucs_to_latin_viscii_upper): Deleted.
3657 (struct Lisp_Charset): Renamed `encoding_table' to
3658 `to_byte1_table'; add `to_byte2_table'.
3659 (CHARSET_DECODING_TABLE): New macro.
3660 (CHARSET_TO_BYTE1_TABLE): New macro.
3661 (CHARSET_TO_BYTE2_TABLE): New macro.
3662 (XCHARSET_DECODING_TABLE): New macro.
3663 (XCHARSET_TO_BYTE1_TABLE): New macro.
3664 (XCHARSET_TO_BYTE2_TABLE): New macro.
3665 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3667 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3668 don't use `ucs_to_*' tables.
3670 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3672 * text-coding.c (Fmake_coding_system): Don't set up
3673 `codesys->fixed.size'.
3674 (encode_coding_no_conversion): Use `if' instead of `switch'.
3676 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3678 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3680 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3681 (Fmake_charset): Modify for `make_charset'.
3682 (Fmake_reverse_direction_charset): Likewise.
3683 (complex_vars_of_mule_charset): Likewise.
3685 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3687 * text-coding.c (char_encode_shift_jis): Use table
3688 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3690 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3692 * text-coding.c (text_encode_generic): Use `if' instead of
3694 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3697 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3699 * text-coding.c (encode_coding_sjis): Deleted.
3700 (char_encode_shift_jis): New function.
3701 (char_finish_shift_jis): New function.
3702 (reset_encoding_stream): Set up `encode_char' and `finish' for
3703 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3704 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3705 (char_encode_utf8): Treat `eol_type'.
3707 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3709 * file-coding.c (decode_coding_iso2022): Use
3710 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3712 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3714 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3717 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3719 * char-lb.h (CHAR_COLUMNS): New macro.
3721 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3723 * text-coding.c (char_encode_ucs4): New function.
3724 (char_finish_ucs4): New function.
3725 (encode_coding_ucs4): Deleted.
3726 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3727 (text_encode_generic): Delete local variable `charset' and `half'.
3728 (ucs_to_mule_table): Deleted.
3729 (mule_to_ucs_table): Deleted.
3730 (Fset_ucs_char): Deleted.
3731 (ucs_to_char): Deleted.
3732 (Fucs_char): Deleted.
3733 (Fset_char_ucs): Deleted.
3734 (Fchar_ucs): Deleted.
3735 (decode_ucs4): Deleted.
3736 (mule_char_to_ucs4): Deleted.
3737 (encode_ucs4): Deleted.
3738 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3739 (decode_coding_utf8): Likewise.
3740 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3741 (char_encode_iso2022): Fixed.
3742 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3743 `Fset_char_ucs' and `Fchar_ucs'.
3744 (complex_vars_of_file_coding): Don't initialize
3745 `ucs_to_mule_table'.
3747 * objects-tty.c (tty_initialize_font_instance): Don't use
3750 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3753 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3754 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3756 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3757 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3758 (emchar_string_displayed_columns): Likewise.
3760 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3761 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3762 (string_column_at_point): Likewise.
3763 (Fmove_to_column): Likewise.
3765 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3766 `encoding_table' and `decoding_table'.
3767 (CHARSET_REP_BYTES): Deleted.
3768 (XCHARSET_REP_BYTES): Deleted.
3769 (XCHARSET_COLUMNS): Deleted.
3770 (CHAR_COLUMNS): New macro.
3771 (lookup_composite_char): Deleted unconditionally.
3772 (composite_char_string): Likewise.
3774 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3776 * char-ucs.h (Emchar_to_byte_table): New type.
3777 (get_byte_from_character_table): New function interface.
3778 (Vcharset_latin_jisx0201): New variable.
3779 (latin_jisx0201_to_ucs): New variable.
3780 (ucs_to_latin_jisx0201): New variable.
3781 (Vcharset_latin_iso8859_2): New variable.
3782 (latin_iso8859_2_to_ucs): New variable.
3783 (ucs_to_latin_iso8859_2): New variable.
3784 (Vcharset_latin_iso8859_3): New variable.
3785 (latin_iso8859_3_to_ucs): New variable.
3786 (ucs_to_latin_iso8859_3): New variable.
3787 (Vcharset_latin_iso8859_4): New variable.
3788 (latin_iso8859_4_to_ucs): New variable.
3789 (ucs_to_latin_iso8859_4): New variable.
3790 (Vcharset_latin_iso8859_9): New variable.
3791 (latin_iso8859_9_to_ucs): New variable.
3792 (ucs_to_latin_iso8859_9): New variable.
3793 (Vcharset_latin_viscii_lower): New variable.
3794 (latin_viscii_lower_to_ucs): New variable.
3795 (ucs_to_latin_viscii_lower): New variable.
3796 (Vcharset_latin_viscii_upper): New variable.
3797 (latin_viscii_upper_to_ucs): New variable.
3798 (ucs_to_latin_viscii_upper): New variable.
3799 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3800 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3801 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3802 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3803 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3804 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3805 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3806 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3807 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3808 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3810 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3811 (Vcharset_latin_viscii_upper): New variable.
3812 (make_byte_from_character_table): New function.
3813 (put_byte_from_character_table): New function.
3814 (get_byte_from_character_table): New function.
3815 (CHAR96): New macro.
3816 (ucs_to_latin_jisx0201): New variable.
3817 (latin_jisx0201_to_ucs): New variable.
3818 (ucs_to_latin_iso8859_2): New variable.
3819 (latin_iso8859_2_to_ucs): New variable.
3820 (ucs_to_latin_iso8859_3): New variable.
3821 (latin_iso8859_3_to_ucs): New variable.
3822 (ucs_to_latin_iso8859_4): New variable.
3823 (latin_iso8859_4_to_ucs): New variable.
3824 (ucs_to_latin_iso8859_9): New variable.
3825 (latin_iso8859_9_to_ucs): New variable.
3826 (ucs_to_latin_viscii_lower): New variable.
3827 (latin_viscii_lower_to_ucs): New variable.
3828 (ucs_to_latin_viscii_upper): New variable.
3829 (latin_viscii_upper_to_ucs): New variable.
3830 (ucs_to_latin_tcvn5712): New variable.
3831 (latin_tcvn5712_to_ucs): New variable.
3832 (Qlatin_viscii_lower): New variable.
3833 (Qlatin_viscii_upper): New variable.
3834 (syms_of_mule_charset): Set up new symbol
3835 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3836 (complex_vars_of_mule_charset): Set up new charset
3837 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3838 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3839 `ucs_to_<CHARSET>' tables.
3841 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3843 * text-coding.c: New file.
3845 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3847 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3849 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3850 (MAKE_CHAR): Modify for `ucs-bmp'.
3851 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3852 non-MULE characters of BMP.
3854 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3856 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3859 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3862 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3863 - Include character.h for `CHAR_ASCII_P'.
3865 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3867 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3868 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3870 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3871 (BYTE_C0_P): Likewise.
3872 (BYTE_C1_P): Likewise.
3873 (Lstream_get_emchar_1): Likewise.
3874 (Lstream_fput_emchar): Likewise.
3875 (Lstream_funget_emchar): Likewise.
3876 (copy_internal_to_external): Likewise.
3877 (copy_external_to_internal): Likewise.
3879 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3880 (BYTE_C0_P): Likewise.
3881 (BYTE_C1_P): Likewise.
3882 (Lstream_get_emchar_1): Likewise.
3883 (Lstream_fput_emchar): Likewise.
3884 (Lstream_funget_emchar): Likewise.
3885 (copy_internal_to_external): Likewise.
3886 (copy_external_to_internal): Likewise.
3888 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3889 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3891 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3892 (BYTE_ASCII_P): Moved to mb-1byte.h.
3894 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3896 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3898 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3899 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3900 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3901 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3902 (VALIDATE_CHARPTR_FORWARD): Likewise.
3903 (simple_charptr_emchar): Moved to mb-multibyte.h.
3904 (simple_set_charptr_emchar): Likewise.
3905 (simple_charptr_copy_char): Likewise.
3906 (non_ascii_charptr_emchar): Likewise.
3907 (non_ascii_set_charptr_emchar): Likewise.
3908 (non_ascii_charptr_copy_char): Likewise.
3909 (charptr_emchar): Moved to mb-*byte.h.
3910 (set_charptr_emchar): Likewise.
3911 (charptr_copy_char): Likewise.
3913 * mb-1byte.h, mb-multibyte.h: New files.
3915 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3917 * mb-utf-8.h (MULTIBYTE): New macro.
3918 (MAX_EMCHAR_LEN): Moved from buffer.h.
3919 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3921 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3923 * mb-lb.h, multibyte.h: New files.
3925 * char-1byte.h (Charset_ID): Moved from buffer.h.
3926 (MIN_LEADING_BYTE): Likewise.
3927 (LEADING_BYTE_ASCII): Likewise.
3928 (NUM_LEADING_BYTES): Likewise.
3929 (CHARSETP): Likewise.
3930 (CHARSET_BY_LEADING_BYTE): Likewise.
3931 (XCHARSET_LEADING_BYTE): Likewise.
3932 (XCHARSET_GRAPHIC): Likewise.
3933 (XCHARSET_COLUMNS): Likewise.
3934 (XCHARSET_DIMENSION): Likewise.
3935 (CHAR_CHARSET): Likewise.
3936 (CHAR_LEADING_BYTE): Likewise.
3937 (BREAKUP_CHAR): Likewise.
3938 (Vcharset_ascii): Likewise.
3940 * buffer.h: Include multibyte.h unconditionally.
3941 (VALID_CHARPTR_P): Moved to multibyte.h.
3942 (ASSERT_VALID_CHARPTR): Likewise.
3943 (REAL_INC_CHARPTR): Likewise.
3944 (REAL_INC_CHARBYTIND): Likewise.
3945 (REAL_DEC_CHARPTR): Likewise.
3946 (INC_CHARPTR): Likewise.
3947 (INC_CHARBYTIND): Likewise.
3948 (DEC_CHARPTR): Likewise.
3949 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3950 (VALIDATE_CHARPTR_FORWARD): Likewise.
3951 (charptr_n_addr): Likewise.
3952 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3953 (simple_charptr_emchar): Moved to multibyte.h.
3954 (simple_set_charptr_emchar): Likewise.
3955 (simple_charptr_copy_char): Likewise.
3956 (non_ascii_charptr_emchar): Likewise.
3957 (non_ascii_set_charptr_emchar): Likewise.
3958 (non_ascii_charptr_copy_char): Likewise.
3959 (charptr_emchar): Likewise.
3960 (set_charptr_emchar): Likewise.
3961 (charptr_copy_char): Likewise.
3962 (charptr_emchar_n): Likewise.
3963 (Charset_ID): Moved to char-1byte.h.
3964 (Vcharset_ascii): Likewise.
3965 (CHAR_CHARSET): Likewise.
3966 (CHAR_LEADING_BYTE): Likewise.
3967 (LEADING_BYTE_ASCII): Likewise.
3968 (NUM_LEADING_BYTES): Likewise.
3969 (MIN_LEADING_BYTE): Likewise.
3970 (CHARSETP): Likewise.
3971 (CHARSET_BY_LEADING_BYTE): Likewise.
3972 (XCHARSET_LEADING_BYTE): Likewise.
3973 (XCHARSET_GRAPHIC): Likewise.
3974 (XCHARSET_COLUMNS): Likewise.
3975 (XCHARSET_DIMENSION): Likewise.
3976 (BREAKUP_CHAR): Likewise.
3978 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3980 * character.h: Add document about interface for characters.
3982 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3983 (MAKE_CHAR): Delete comment about
3984 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3985 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3986 (BREAKUP_CHAR): Modify name of arguments.
3987 (CHAR_CHARSET): Modify name of argument.
3989 * buffer.h: Delete document about Emchar accessors.
3991 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3993 * character.h (CHAR_INTP): Moved from buffer.h
3994 (CHAR_OR_CHAR_INTP): Likewise.
3995 (XCHAR_OR_CHAR_INT): Likewise.
3996 (CHECK_CHAR_COERCE_INT): Likewise.
3998 * buffer.h (CHAR_INTP): Moved to character.h
3999 (CHAR_OR_CHAR_INTP): Likewise.
4000 (XCHAR_OR_CHAR_INT): Likewise.
4001 (CHECK_CHAR_COERCE_INT): Likewise.
4003 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4006 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4007 - Include char-1byte.h, char-lb.h or char-ucs.h.
4009 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4011 * buffer.h: Include character unconditionally.
4012 (valid_char_p): Moved to char-*.h.
4013 (non_ascii_valid_char_p): Moved to char-lb.h.
4015 * char-1byte.h, char-lb.h, char-ucs.h: New files.
4017 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
4019 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4020 in UTF-2000 because it is not ported yet and not to use
4021 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4022 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4023 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4025 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4026 (CHAR_ASCII_P): Moved from character.h.
4028 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4029 (CHAR_ASCII_P): Likewise.
4030 (CHAR_FIELD1_MASK): Deleted.
4031 (CHAR_FIELD2_MASK): Deleted.
4032 (CHAR_FIELD3_MASK): Deleted.
4033 (MAX_CHAR_BASIC_LATIN): New macro.
4034 (CHAR_FIELD1): Deleted.
4035 (CHAR_FIELD2_INTERNAL): Deleted.
4036 (CHAR_FIELD3_INTERNAL): Deleted.
4037 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4038 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4039 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4040 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4041 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4042 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4043 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4044 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4045 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4046 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4047 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4048 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4049 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4050 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4051 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4052 (MIN_CHAR_COMPOSITION): Deleted.
4053 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4054 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4056 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
4058 * buffer.h: Include mb-utf-8.h in UTF-2000.
4060 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4062 * mb-utf-8.h: New file.
4064 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
4066 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4069 * mule-charset.h, buffer.h (Charset_ID): New type.
4071 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4073 * mule-canna.c (c2mu): Use `MAKE_CHAR',
4074 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4075 instead of `MULE_CHAR_PRIVATE_OFFSET',
4076 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4077 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4078 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4080 * character.h (Vcharset_japanese_jisx0212): New variable
4083 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
4085 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4086 (charset_by_attributes): Delete array about direction.
4087 (latin_a_char_to_charset): New variable in UTF-2000.
4088 (latin_a_char_to_byte1): New variable in UTF-2000.
4089 (latin_a_char_to_byte2): New variable in UTF-2000.
4090 (Qucs_bmp): New variable.
4091 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4093 (next_allocated_2_byte_leading_byte): Likewise.
4094 (non_ascii_set_charptr_emchar): Likewise.
4095 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4096 `CHARSET_TYPE_256X256' in UTF-2000; modify for
4097 `charset_by_attributes'.
4098 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4099 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4100 and `CHARSET_BY_LEADING_BYTE'.
4101 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4102 `utf-2000-version' to `vars_of_mule_charset'.
4103 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4104 define `leading-code-private-11' in UTF-2000; move setting of
4105 `utf-2000-version' from `syms_of_mule_charset'.
4106 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4109 * character.h (Charset_ID): New type.
4110 (LEADING_BYTE_UCS_BMP): New macro.
4111 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4112 (CHARSET_ID_OFFSET_94): New macro.
4113 (MIN_CHARSET_ID_PRIVATE_94): New macro.
4114 (MAX_CHARSET_ID_PRIVATE_94): New macro.
4115 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4117 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4118 (LEADING_BYTE_LATIN_JISX0201): Likewise.
4119 (CHARSET_ID_OFFSET_96): New macro.
4120 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4121 CHARSET_ID_OFFSET_96 and final-byte.
4122 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4123 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4124 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4125 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4126 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4127 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4128 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4129 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4130 (LEADING_BYTE_THAI_TIS620): Likewise.
4131 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4132 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4133 (CHARSET_ID_OFFSET_94x94): New macro.
4134 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4135 CHARSET_ID_OFFSET_94x94 and final-byte.
4136 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4137 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4138 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4139 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4140 (LEADING_BYTE_CHINESE_GB2312): Likewise.
4141 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4142 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4143 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4144 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4145 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4146 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4147 (CHARSET_TYPE_128X128): New macro.
4148 (CHARSET_TYPE_256X256): New macro.
4149 (XCHARSET_PRIVATE_P): Delete unconditionally.
4150 (charset_by_attributes): Delete array about direction.
4151 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4152 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4153 (MIN_CHAR_94): New macro.
4154 (MAX_CHAR_94): New macro.
4155 (MIN_CHAR_96): New macro.
4156 (MAX_CHAR_96): New macro.
4157 (MIN_CHAR_94x94): New macro.
4158 (MAX_CHAR_94x94): New macro.
4159 (MIN_CHAR_96x96): New macro.
4160 (MAX_CHAR_96x96): New macro.
4161 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4162 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4163 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4165 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4166 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4167 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4168 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4169 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4170 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4171 `XCHARSET_LEADING_BYTE' to make code-point.
4172 (latin_a_char_to_charset): New variable.
4173 (latin_a_char_to_byte1): New variable.
4174 (latin_a_char_to_byte2): New variable.
4175 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4176 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4177 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4179 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4180 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4181 (find_charsets_in_emchar_string): Likewise.
4182 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4184 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4186 (decode_coding_iso2022): Likewise.
4188 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4191 * redisplay.c (redisplay_text_width_emchar_string): Use
4192 `Charset_ID' instead of `unsigned char'.
4193 (redisplay_frame_text_width_string): Likewise.
4195 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4198 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4199 instead of `unsigned char'.
4200 (face_cachel_charset_font_metric_info): Likewise.
4202 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4203 (get_non_ascii_char_table_value): Likewise.
4204 (get_char_table): Likewise.
4205 (put_char_table): Likewise.
4206 (map_over_other_charset): Likewise.
4207 (map_char_table): Likewise.
4209 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4210 instead of `unsigned char'.
4212 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
4214 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4215 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4217 * mule-charset.c (leading_code_private_11): Don't define in
4220 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4221 in UTF-2000 because it is not ported yet and not to use
4222 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4224 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
4226 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4228 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4230 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4233 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4234 of unsigned char to store leading-byte.
4236 * chartab.c (get_non_ascii_char_table_value): Don't use
4237 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4239 * file-coding.c (encode_coding_big5): Delete bogus implementation
4242 * character.h (LEADING_BYTE_*): Delete definition for
4244 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4245 (LEADING_BYTE_PREFIX_P): Deleted.
4246 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4247 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4248 (BUFBYTE_LEADING_BYTE_P): Deleted.
4249 (CHARSET_PRIVATE_P): Deleted unconditionally.
4250 (rep_bytes_by_first_byte): Deleted unconditionally.
4251 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4252 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4253 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4254 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4255 (CHAR_FIELD2): Deleted.
4256 (CHAR_FIELD3): Deleted.
4257 (MAKE_CHAR): Delete definition for non-UTF-2000.
4258 (BREAKUP_CHAR_1_UNSAFE): Deleted.
4259 (breakup_char_1): New implementation.
4260 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4261 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4263 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
4265 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4268 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4270 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4271 (CHARSET_PRIVATE_P): Likewise.
4272 (XCHARSET_PRIVATE_P): Likewise.
4273 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4275 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4277 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4279 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
4281 * character.h (LEADING_BYTE_*): Changed in UTF2000.
4282 (NUM_LEADING_BYTES): Changed from 128 to 256.
4283 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4284 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4286 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4288 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4290 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4291 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4292 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4293 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4294 (Qchinese_cns11643_3): New variable in UTF2000.
4295 (Qchinese_cns11643_4): New variable in UTF2000.
4296 (Qchinese_cns11643_5): New variable in UTF2000.
4297 (Qchinese_cns11643_6): New variable in UTF2000.
4298 (Qchinese_cns11643_7): New variable in UTF2000.
4299 (syms_of_mule_charset): Define `chinese-cns11643-3',
4300 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4301 and `chinese-cns11643-7' in UTF2000.
4302 (vars_of_mule_charset): Initialize
4303 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4305 (complex_vars_of_mule_charset): Setup charset
4306 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4307 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4309 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4311 * mule-charset.c: Move setting for `leading-code-private-11' from
4312 `syms_of_mule_charset' to `vars_of_mule_charset'.
4314 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4316 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4317 and `NUM_LEADING_BYTES' in assert.
4319 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
4321 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4323 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4324 `NUM_LEADING_BYTES' instead of 128.
4326 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
4328 * mule-charset.h (charset_by_leading_byte): Use
4329 `NUM_LEADING_BYTES' instead of 128.
4330 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4332 * mule-charset.c (charset_by_leading_byte): Use
4333 `NUM_LEADING_BYTES' instead of 128.
4334 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4336 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4339 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
4341 * mule-charset.c (syms_of_mule_charset): Update to
4344 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4346 * file-coding.c (encode_coding_sjis): New implementation for
4347 UTF2000. (decode_coding_sjis): Ditto.
4349 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4351 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4352 Don't define in UTF2000.
4354 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4357 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4358 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4361 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
4363 * config.h.in (CHAR_IS_UCS4): New macro.
4365 * mule-charset.c (rep_bytes_by_first_byte): Modify for
4366 conventional MULE representation.
4367 (syms_of_mule_charset): Update to 0.3 (Imamiya).
4369 * mule-charset.h: Reverted to original.
4371 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4372 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4373 "mule-charset.h" if CHAR_IS_UCS4 is defined.
4375 * character.h: New file.
4377 * file-coding.c (Fmake_coding_system): Set 1 to
4378 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4380 (encode_coding_no_conversion): New implementation for UTF2000.
4382 * file-coding.h (struct Lisp_Coding_System): Add new member
4385 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4387 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4388 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4389 (encode_coding_iso2022): New implementation for UTF2000.
4391 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4393 * mule-canna.c (c2mu): New implementation for UTF2000.
4396 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4398 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4400 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4402 * file-coding.c (reset_encoding_stream): Set 0 to
4403 `str->iso2022.current_char_boundary' in UTF2000.
4404 (encode_utf8): Don't define in UTF2000.
4405 (encode_coding_utf8): New implementation for UTF-8 representation
4407 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4409 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4411 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4413 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4415 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4417 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4419 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4420 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4421 as UTF-8 in UTF2000.
4422 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4423 (non_ascii_valid_char_p): Don't define in UTF2000.
4424 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4425 (Lstream_get_emchar_1): Likewise.
4426 (utf-2000-version): New variable in UTF2000.
4428 * lread.c (read_escape): Add new reader `u'.
4430 * insdel.c (three_to_one_table): Don't define in UTF2000.
4431 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4432 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4434 (bytind_to_bufpos_func): Likewise.
4435 (buffer_mule_signal_inserted_region): Likewise.
4436 (vars_of_insdel): Don't initialize `three_to_one_table'.
4437 (init_buffer_text): Use `buf->text->mule_size' instead of
4438 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4441 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4442 UTF-8 representation in UTF2000.
4443 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4444 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4445 (decode_coding_iso2022): Don't define local variable `lb' in
4446 UTF2000; don't use LEADING_BYTE in UTF2000; use
4447 `DECODE_ADD_UCS_CHAR' in UTF2000.
4448 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4450 * config.h.in (UTF2000): New macro.
4452 * buffer.h (struct buffer_text): Add new member `mule_size' and
4453 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4454 (valid_char_p): Return always 1 in UTF2000.
4455 (MAX_EMCHAR_LEN): 6 in UTF2000.
4456 (three_to_one_table): Don't define in UTF2000.
4457 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4459 (real_bytind_to_bufpos): Likewise.
4461 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4463 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4465 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4466 representation change.
4467 (Vutf_2000_version): New variable.
4468 (leading_code_private_11): New variable.
4469 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4470 `leading-code-private-11'.
4472 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4473 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4474 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4475 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4476 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4477 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4478 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4479 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4480 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4481 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4482 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4483 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4484 (MIN_CHAR_GREEK): New macro.
4485 (MAX_CHAR_GREEK): New macro.
4486 (MIN_CHAR_CYRILLIC): New macro.
4487 (MAX_CHAR_CYRILLIC): New macro.
4488 (MIN_CHAR_HEBREW): New macro.
4489 (MAX_CHAR_HEBREW): New macro.
4490 (MIN_CHAR_THAI): New macro.
4491 (MAX_CHAR_THAI): New macro.
4492 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4493 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4494 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4495 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4496 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4497 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4498 (CHAR_FIELD2): New inline function.
4499 (CHAR_FIELD3): New inline function.
4500 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4501 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4502 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4503 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4504 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4505 (MIN_CHAR_COMPOSITION): Likewise.
4506 (CHAR_LEADING_BYTE): Modified for character representation change.
4507 (MAKE_CHAR): Likewise.
4509 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4510 (Vcharset_greek_iso8859_7): Likewise.
4511 (Vcharset_cyrillic_iso8859_5): Likewise.
4512 (Vcharset_hebrew_iso8859_8): Likewise.
4513 (Vcharset_thai_tis620): Likewise.
4514 (Vcharset_katakana_jisx0201): Likewise.
4516 2002-11-02 Stephen J. Turnbull <stephen@xemacs.org>
4518 * XEmacs 21.4.10 "Military Intelligence" is released.
4520 2002-10-17 Raymond Toy <toy@rtp.ericsson.se>
4522 * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was
4523 using the NAS private array SoundFileInfo that no longer exists in
4524 NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a
4525 and earlier. This is broken for some versions between 1.5a and
4528 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org>
4530 * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4532 * emacs.c (shut_down_emacs): Improve crash message.
4534 2002-10-09 Stephen J. Turnbull <stephen@xemacs.org>
4536 * file-coding.c (determine_real_coding_system): Check for coding
4537 cookie in first LINES_TO_CHECK lines (currently 2). Cater to
4538 shebangs and Python PEP 263.
4540 2002-10-08 Andy Piper <andy@xemacs.org>
4542 * glyphs-widget.c (layout_query_geometry): only resize dynamically
4543 if static sizes haven't been set.
4545 2002-08-30 Mike Alexander <mta@arbortext.com>
4547 * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4550 2002-10-03 Stephen J. Turnbull <stephen@xemacs.org>
4552 * callproc.c (child_setup): 21.4 doesn't have retry_close.
4554 2002-09-20 Mike Sperber <mike@xemacs.org>
4556 (This partially gets back my patch from 2002-07-20 without the
4558 * callproc.c (child_setup): Remove Ben's comment noting confusion
4559 over the file descriptors >= 3: close_process_descs() doesn't
4560 close those. Fix fd range to go up to MAXDESC-1 instead of 64.
4561 * process-unix.c (unix_create_process): Call
4562 begin_dont_check_for_quit to inhibit unwanted interaction (and
4563 thus breaking of X event synchronicity) in the child.
4565 2002-09-26 Golubev I. N. <gin@mo.msk.ru>
4567 * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4570 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu>
4572 * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4573 instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout,
4574 the xemacs process did not exit, but looped infinitely here. This
4577 2002-09-28 Stephen J. Turnbull <stephen@xemacs.org>
4579 * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4580 (find_context): Improve comments.
4582 * regex.c (re_compile_fastmap): Gratuitous #ifdef comment fixes.
4583 (re_match_2): An XCHAR_TABLE operation was missing.
4585 Many of the following changes were inspired by Andy Piper's (now
4586 obsolete) patch to make syntax-table text property lookup optional.
4590 * syntax.h (top level): Document semantics of syntax flags.
4591 * syntax.c (comstr_start, Fforward_comment): Improve comments.
4592 * syntax.c, syntax.h (top level): Document syntax cache better in
4595 [Instrument syntax caching (temporary change)]
4597 * syntax.h (enum syntax_cache_statistics_functions, struct
4598 syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4599 SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4600 * syntax.c (scan_words, Fforward_comment, scan_lists,
4601 Fbackward_prefix_characters):
4602 * font-lock.c (find_context):
4603 Use them to instrument syntax caching.
4604 * syntax.c (struct syntax_cache_statistics, scs_statistics,
4605 syntax_cache_statistics_function_names): New type and variables.
4606 * syntax.c (update_syntax_cache): Update and report statistics.
4608 [Major syntax cache optimizations]
4610 syntax.c (lookup_syntax_properties): Default off.
4612 * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4613 * syntax.c (update_syntax_cache):
4614 Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4616 [Minor syntax cache optimizations and code clarifications]
4618 * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4619 SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4620 SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4621 SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4622 SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4623 (Code clarification.)
4625 * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4626 scan_lists): Compute code from syncode, use Boolean macros instead
4627 of redundant masking operations. (Code clarification; any decent
4628 compiler can do this optimization.)
4630 * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4633 * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4634 PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4635 use F*_single_property_change instead of F*_extent_change.
4636 Currently F*_single_property_change is _much_ less efficient.
4638 * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4639 * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT): Initialize
4640 syntax_cache.object properly, don't leave Qt or Qnil.
4641 (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4642 * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4643 tests for Qt or Qnil.
4645 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org>
4647 * redisplay.c (point_in_line_start_cache):
4648 * extents.c (print_extent_1):
4651 * extents.c (Fset_extent_property): Document `syntax-table' property.
4653 * extents.h (Fnext_single_property_change): EXFUN it.
4655 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4657 * search.c (clear_unused_search_regs): New static function.
4661 Use it. Fixes "stale match data" bug reported by Martin Stjernholm.
4662 Minor clarifications in comments.
4664 * regex.c (re_match_2_internal): Ensure no stale submatches.
4666 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org>
4668 * event-Xt.c (enqueue_focus_event): Add missing prototype.
4670 2002-08-29 Jerry James <james@xemacs.org>
4672 * lisp.h: structrures -> structures.
4674 2002-06-03 Andy Piper <andy@xemacs.org>
4676 * frame.c (frame_conversion_internal): add conversion appropriate
4677 for setting frame dimensions in pixels.
4679 * console.h (struct console_methods): add device-specific widget
4682 * emacs.c (main_1): initialize glyph vars.
4684 * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4685 (handle_focus_event_2): new function. Allow focus to
4686 be set to a particular window and widget.
4687 (enqueue_focus_event): new function. Create a
4688 synthetic focus event.
4689 (emacs_Xt_handle_magic_event): call
4690 handle_focus_event_2.
4692 * frame.c (Fset_frame_pixel_height): new function. Allow
4693 pixel-based sizing. Does the right thing on character-oriented
4695 (Fset_frame_pixel_width): ditto.
4696 (Fset_frame_pixel_size): ditto.
4697 (syms_of_frame): declare.
4699 * general-slots.h: add :vertically-justify and
4700 :horizontally-justify.
4702 * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4703 (mswindows_widget_border_width): new function.
4704 (mswindows_combo_box_instantiate): set border widths.
4705 (console_type_create_glyphs_mswindows): declare.
4708 (check_valid_justification): allow vertical and horizontal
4710 (widget_border_width): new function. Call device methods.
4711 (widget_instance_border_width): ditto.
4712 (logical_unit_height): new function. Determine the height of a
4713 logical-unit. Logical units are intended to provide grid-like
4714 layout for subcontrols in a layout. If the layout is
4715 :vertically-justify top then subcontrols will be positioned on
4716 logical-unit boundaries, thus allowing adjacent subcontrols to
4718 (widget_logical_unit_height): ditto for widgets.
4719 (redisplay_widget): misc cleanup.
4720 (widget_spacing): new function. Call device specific
4721 methods. Intended to be the default gap between adjacent widgets.
4722 (widget_query_geometry): use new spacing functions to determine
4723 appropriate geometry.
4724 (initialize_widget_image_instance): initialize horizontal and
4725 vertical justification.
4726 (widget_instantiate): use logica-units where appropriate for
4727 sizing large widgets.
4728 (button_query_geometry): use widget_instance_border_width.
4729 (tree_view_query_geometry): ditto.
4730 (tab_control_query_geometry): ditto.
4731 (edit_field_query_geometry): new function.
4732 (layout_update): pick up :justify, :horizontally-justify and
4733 :vertically-justify none of which worked previously. :justify is
4734 used as a fallback for both horizontal and vertical justification.
4735 (layout_query_geometry): use logical units to size appropriately.
4736 (layout_layout): ditto.
4737 (Fwidget_logical_to_character_width): new function. Allow users to
4738 convert from logical units to characters so that frame sizes can
4739 be set appropriately.
4740 (Fwidget_logical_to_character_height): ditto.
4741 (syms_of_glyphs_widget): declare.
4742 (image_instantiator_edit_fields): add edit_field_query_geometry.
4743 (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4744 :horizontally-justify.
4745 (specifier_vars_of_glyphs_widget): new function. Declare
4746 Vwidget_border_width which is not yet used.
4748 * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4749 (x_widget_border_width): new function.
4750 (x_widget_instantiate): create a sensible name for widgets.
4751 (console_type_create_glyphs_x): declare x_widget_border_width.
4753 * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4754 (struct Lisp_Image_Instance): add :vertically-justify and
4755 :horizontally-justify.
4756 (LAYOUT_JUSTIFY_TOP): new.
4757 (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4758 (ROUND_UP): new macro. Round argument up to next integral
4761 * redisplay-output.c (redisplay_output_layout): misc formatting.
4763 * symsinit.h: declare specifier_vars_of_glyphs_widget.
4765 2002-08-23 Stephen J. Turnbull <stephen@xemacs.org>
4767 * XEmacs 21.4.9 "Informed Management" is released.
4769 2002-08-19 Andy Piper <andy@xemacs.org>
4771 * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4774 * realpath.c (xrealpath): normalize drive spec also so that dir
4775 sep chars are not mixed on cygwin.
4777 2002-08-06 Jerry James <james@xemacs.org>
4779 * window.c (Fsplit_window): Count only half of the divider width
4780 against the left window when splitting horizontally.
4782 2002-06-24 Andy Piper <andy@xemacs.org>
4784 * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4785 toolbar was cleared.
4787 * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4788 function. Split out from mswindows_output_frame_toolbars.
4789 (mswindows_output_frame_toolbars): move clear pieces to
4790 mswindows_output_frame_toolbars.
4792 * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4793 out from gtk_output_frame_toolbars.
4794 (gtk_output_frame_toolbars): move clear pieces to
4795 gtk_clear_frame_toolbars.
4797 * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4798 the frame is cleared. How this ever worked before is a mystery.
4799 (x_output_frame_toolbars): Only output toolbars.
4800 (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4802 * gutter.c (update_gutter_geometry):
4803 Mark frame layout changed.
4804 (update_frame_gutter_geometry, update_frame_gutters):
4805 Respect frame_layout_changed.
4807 * console.h (struct console_methods): add
4808 clear_frame_toolbars_method.
4810 * redisplay.c (redisplay_frame): call
4811 update_frame_toolbars_geometry and re-order update_frame_toolbars.
4813 * toolbar.h: declare update_frame_toolbars_geometry.
4815 * toolbar.c (update_frame_toolbars_geometry): new function. Split
4816 out from update_frame_toolbars. Call clear_frame_toolbars.
4817 (update_frame_toolbars): only output, do not change geometry.
4819 * redisplay.c: add frame_layout_changed.
4821 * redisplay.h: add frame_layout_changed.
4822 (CLASS_RESET_CHANGED_FLAGS): set it.
4823 (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4824 (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4825 (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4827 * device.h (struct device): add frame_layout_changed.
4828 (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4830 * frame.h (struct frame): add frame_layout_changed.
4831 (MARK_FRAME_LAYOUT_CHANGED): new.
4833 2002-06-30 Mike Alexander <mta@arbortext.com>
4835 * event-msw.c (mswindows_need_event): Don't wait for a new message
4836 if the queue is not empty. Suggested by Paul Moore.
4838 2002-06-12 Andy Piper <andy@xemacs.org>
4840 * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4841 for printing on accurately.
4843 2002-06-09 Rick Rankin <rick_rankin@yahoo.com>
4845 * event-msw.c (mswindows_wnd_proc): Add a handler for the
4846 WM_ACTIVATE message. Make sure that the frame is visible if the
4847 window is visible. This seemss to fix the problem where XEmacs
4848 appears to freeze after switching desktops with certain virtual
4850 (debug_output_mswin_message): Added code to output message
4851 parameters for WM_WINDOWPOSCHANGED,
4852 WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4854 2002-05-25 Andy Piper <andy@xemacs.org>
4856 * select-x.c (vars_of_select_x): Fix docstring of
4857 x-selection-strict-motif-ownership
4859 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4861 * keymap.c (get_keymap):
4862 Add comment about do_autoload GCPROs own args.
4864 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4866 * bytecode.c (execute_optimized_program): check_opcode ifdef
4867 ERROR_CHECK_BYTE_CODE.
4869 2002-08-14 Stephen J. Turnbull <stephen@xemacs.org>
4871 Thanks to Ben Wing and Michael Sperber.
4873 * eval.c (Fcommand_execute):
4876 (Fmacroexpand_internal):
4877 (function_argcount):
4878 callint.c (Fcall_interactively):
4879 Add comment about do_autoload GCPROs own args.
4881 * (do_autoload): GCPRO both args as well as local Lisp_Object.
4883 * eval.c (Ffuncall): Extra braces to placate GCC.
4885 2002-08-10 Stephen J. Turnbull <stephen@xemacs.org>
4887 * backtrace.h (grow_specpdl):
4889 * EmacsFrame.c (EmacsFrameSetValues):
4890 * eval.c (grow_specpdl):
4891 * ExternalShell.c (hack_event_masks_1):
4892 * glyphs-x.c (convert_EImage_to_XImage):
4893 (x_finalize_image_instance):
4894 * ralloc.c (page_size):
4896 * xgccache.c (gc_cache_hash):
4897 Fix unsigned comparison warnings.
4899 2002-07-29 Jerry James <james@xemacs.org>
4901 * lread.c (locate_file): Any nonnegative return value indicates
4902 success if MODE is nonnegative.
4904 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU>
4906 * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4909 2002-07-17 Stephen J. Turnbull <stephen@xemacs.org>
4911 * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4913 * dumper.c (pdump_get_indirect_count):
4914 (pdump_scan_by_alignment):
4915 (pdump_dump_root_struct_ptrs):
4916 (pdump_dump_rtables):
4917 (pdump_dump_root_objects):
4919 * nas.c (WaveOpenDataForReading):
4920 * fns.c (print_bit_vector):
4921 * font-lock.c (SINGLE_SYNTAX_STYLE):
4922 * glyphs.c (check_for_ignored_expose):
4923 (find_matching_subwindow):
4925 * imgproc.c (get_histogram):
4926 * redisplay.c (point_in_line_start_cache):
4927 * redisplay-output.c (redisplay_unmap_subwindows):
4928 * symbols.c (defsymbol_massage_name_1):
4929 (defkeyword_massage_name):
4930 (deferror_massage_name_and_message):
4931 * redisplay-x.c (x_output_string):
4932 * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4933 * frame.h (struct frame):
4934 * filelock.c (current_lock_owner):
4935 * doprnt.c (emacs_doprnt_1):
4936 * lisp.h (struct Lisp_Bit_Vector):
4940 2002-02-13 Ben Wing <ben@xemacs.org>
4942 * event-stream.c (reset_key_echo):
4943 * event-stream.c (reset_this_command_keys):
4944 * event-stream.c (execute_command_event):
4945 If console is dead as a result of C-x 5 0, then post-command stuff
4946 needs to be careful and do only non-console-specific stuff.
4948 2002-07-01 Mike Sperber <mike@xemacs.org>
4950 * process-unix.c (unix_send_process): Mark coding_outstream as
4951 non-open upon SIGPIPE.
4953 * event-stream.c (Fnext_event): Reorder switch cases to something
4956 2001-08-13 Dmitry Astapov <adept@umc.com.ua>
4958 * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4959 Don't bogusly reinitialize ascii_character property.
4961 2002-07-08 Mike Sperber <mike@xemacs.org>
4963 * process.c (Fstart_process_internal): Do error checking before we
4964 fork off the child, so the child can't muck with the state of the
4967 2002-07-08 Mike Sperber <mike@xemacs.org>
4969 * ralloc.c (init_ralloc): Allocate properly for pdump.
4971 2002-06-12 Andy Piper <andy@xemacs.org>
4973 * glyphs.c (query_string_geometry): check the string.
4975 * glyphs-widget.c (widget_logical_unit_height): cope with nil
4978 2002-06-17 Jerry James <james@xemacs.org>
4980 * sysdll.c: Remove RTLD_GLOBAL initialization.
4981 * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4983 2002-06-25 Stephen J. Turnbull <stephen@xemacs.org>
4985 * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4987 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de>
4989 * sysdep.c (sys_rename): Make sys_rename work for the case where
4990 Windows rename sets errno to EACCES if target file exists.
4992 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
4994 * device-msw.c (mswindows_handle_page_setup_dialog_box):
4995 Fix detection of metric units to work on Win95
4997 2002-05-21 Stephen J. Turnbull <stephen@xemacs.org>
4999 * syswindows.h: #define LOCALE_RETURN_NUMBER. Why, I don't know.
5001 2002-04-25 Andy Piper <andy@xemacs.org>
5003 * redisplay.c (create_text_block): Remove extra comment trailer.
5005 2002-04-24 Andy Piper <andy@xemacs.org>
5007 * redisplay.c (create_text_block): Don't actually add propagation
5008 data if the line ends after we have added a glyph.
5010 2002-04-22 Andy Piper <andy@xemacs.org>
5012 * extents.c (extent_fragment_update): check for glyphs we have
5013 previously displayed.
5014 * extents.c (print_extent_1): warning removal.
5015 * extents.h: change prototype.
5016 * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5017 widths correctly for wide glyphs.
5018 * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5019 * redisplay.c (prop_type): add PROP_GLYPH.
5020 * redisplay.c (struct prop_block): add glyph type
5021 * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5022 to the propagation data.
5023 * redisplay.c (create_text_block): if there is a glyph in the
5024 propagation data use it to salt extent_fragment_update.
5025 * redisplay.c (create_string_text_block): ditto.
5027 2002-04-13 Nix <nix@esperi.demon.co.uk>
5029 * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5030 * redisplay-output.c (compare_runes): Compare them.
5031 * redisplay.c: Update copyright date.
5032 * redisplay.c (pos_data): Add need_baseline_computation field.
5033 * redisplay.c (add_glyph_rune): Update ascent, descent, and
5034 need_baseline_computation; zero yoffset. Set max_pixmap_height
5035 for all pixmaps, not just automatically positioned ones.
5036 * redisplay.c (calculate_yoffset): New, compute yoffset values.
5037 * redisplay.c (calculate_baseline): New, compute textual baseline.
5038 * redisplay.c (add_glyph_rune): Call them.
5039 * redisplay.c (create_text_block): Likewise.
5040 * redisplay.c (create_overlay_glyph_block): Likewise.
5041 * redisplay.c (add_margin_runes): Likewise.
5042 * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5044 * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5045 * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5046 * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5047 * redisplay-msw.c (mswindows_output_string): Likewise.
5048 * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5049 * redisplay-gtk.c (gtk_output_display_block): Likewise.
5050 * redisplay-x.c (x_output_display_block): Likewise.
5052 2002-03-28 Ben Wing <ben@xemacs.org>
5054 * redisplay.c: Fixed bug in redisplay
5055 w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5056 and down of the lines, since they're bigger than the line
5057 size. (It was seen most obviously when there's a horizontal scroll
5058 bar, e.g. do C-h a glyph or something like that.) The problem was
5059 that the glyph-contrib-p setting on glyphs was ignored even if it
5060 was set properly, which it wasn't until now.
5062 2002-04-24 Andy Piper <andy@xemacs.org>
5064 * lisp.h (Dynarr_end): Fix definition.
5066 2002-02-06 Adrian Aichner <adrian@xemacs.org>
5068 * redisplay.c (mark_redisplay): Remove call to
5069 update_frame_window_mirror.
5071 2001-11-15 Andy Piper <andy@xemacs.org>
5073 * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5076 2002-02-13 Andy Piper <andy@xemacs.org>
5078 * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5079 we did in fact enqueue the XM_MAPFRAME event.
5081 2002-01-15 Adrian Aichner <adrian@xemacs.org>
5083 * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5084 to fix problem switching between virtual desktops under virtuawin
5085 virtual window manager.
5087 2001-07-30 Adrian Aichner <adrian@xemacs.org>
5089 * event-msw.c: Typo fix.
5090 * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5091 magic XM_MAPFRAME event has been sent.
5093 2001-11-23 Andy Piper <andy@xemacs.org>
5095 * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5097 2001-11-21 Andy Piper <andy@xemacs.org>
5099 * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5100 mouse events outside the frame.
5102 2002-03-20 Andy Piper <andy@xemacs.org>
5104 * menubar-msw.c (mswindows_popup_menu): warning removal.
5105 * dialog-msw.c (dialog_popped_down): ditto.
5107 2001-12-11 Andy Piper <andy@xemacs.org>
5109 * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5110 * dialog-msw.c (mswindows_make_dialog_box_internal): set
5112 * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5113 * menubar-msw.c (mswindows_handle_wm_command): ditto.
5114 * menubar-msw.c (mswindows_popup_menu): ditto.
5116 2001-10-29 Andy Piper <andy@xemacs.org>
5118 * dialog-msw.c (handle_directory_dialog_box): quit if the user
5121 2002-01-03 Andy Piper <andy@xemacs.org>
5123 * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5127 2002-03-29 Jonathan Harris <jonathan@xemacs.org>
5129 * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5130 * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5131 * device-msw.c (mswindows_handle_page_setup_dialog_box):
5132 Detect and handle case where machine is set up for metric units
5134 2002-04-02 Andy Piper <andy@xemacs.org>
5136 * dired-msw.c (mswindows_get_files):
5137 * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5138 completely handled by XEmacs. Suggested by Thomas Vogler
5139 <mail@thomas-vogler.de>.
5141 2001-11-14 Andy Piper <andy@xemacs.org>
5143 * nt.c (REG_ROOT): change registry key to XEmacs.
5145 2002-04-27 Andy Piper <andy@xemacs.org>
5147 * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5149 2002-04-26 Andy Piper <andy@xemacs.org>
5151 * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5154 2002-03-14 Mike Alexander <mta@arbortext.com>
5156 * event-msw.c (mswindows_unwait_process): New, remove process from
5158 * process-nt.c (nt_finalize_process_data): Call
5159 mswindows_unwait_process
5160 * console-msw.h: Declare mswindows_unwait_process
5162 2002-05-14 Stephen J. Turnbull <stephen@xemacs.org>
5164 * editfns.c (Fdecode_time):
5165 (Fformat_time_string):
5166 Check for invalid time. Thanks to Nick Pakoulin <npak@ispras.ru>.
5167 (make_time): Warning elimination (change arg name).
5169 2001-11-24 Andy Piper <andy@xemacs.org>
5171 * window.c (Fsplit_window): Doc return type.
5173 2002-04-01 Andy Piper <andy@xemacs.org>
5175 * emacs.c (Fkill_emacs): Only output message box in interactive
5178 2002-04-26 Andy Piper <andy@xemacs.org>
5180 * config.h.in: pull in 21.5.x change to stop alloca warnings under
5183 2002-03-18 Gregory Steuck <greg-xemacs-patch@nest.cx>
5185 * unexelf.c: Use ELFSIZE or define from _LP64 to indicate a 64
5188 2002-05-09 Stephen J. Turnbull <stephen@xemacs.org>
5190 * XEmacs 21.4.8 "Honest Recruiter" is released.
5192 2002-05-07 Nix <nix@esperi.demon.co.uk>
5194 Supersedes 2002-04-17 patch.
5196 * process.h (PROCESS_LIVE_P): Use the process status as
5197 evidence of health, not the state of the input stream.
5198 (PROCESS_READABLE_P): Say if the process is readable
5199 from. (It may be dead nonetheless.)
5200 (CHECK_READABLE_PROCESS): Test for that condition.
5202 * process.c (create_process): Use PROCESS_READABLE_P.
5203 (read_process_output, set_process_filter): Likewise.
5205 * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5206 (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5208 This code is #if 0'd, this is not the time to add new functions:
5210 * process.c (Fprocess_readable_p): Report readability status.
5211 * process.c (Qprocess_readable_p): New, associated symbol...
5212 * process.c (syms_of_process): ... initialize it.
5214 2002-05-04 Stephen J. Turnbull <stephen@xemacs.org>
5216 * XEmacs 21.4.7 "Economic Science" is released.
5218 2002-04-17 Nix <nix@esperi.demon.co.uk>
5220 * process.h (PROCESS_LIVE_P): Use the process status as
5221 evidence of health, not the state of the input stream.
5223 2002-04-30 Charles G. Waldman <cgw@xemacs.org>
5225 * sysdep.c (sys_siglist): change "signum" to "signal"
5227 2001-04-21 Martin Buchholz <martin@xemacs.org>
5229 * s/darwin.h: New file.
5230 Thanks to Greg Parker <gparker@cs.stanford.edu>.
5232 2002-04-23 Andreas Jaeger <aj@suse.de>
5234 * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5235 which use lib64 for 64-bit libs.
5236 (START_FILES): Likewise.
5238 2002-02-11 Mike Sperber <mike@xemacs.org>
5241 (x_IO_error_handler):
5242 (x_init_device): Temporarily keep device in static variable
5243 `device_being_initialized' so we can recover gracefully from
5244 internal XOpenDevice failure. (XOpenDevice is documented to
5245 return NULL on failure, but sometimes calls the IO error handler
5248 2002-01-31 John H. Palmieri <palmieri@math.washington.edu>
5250 * dired.c (Ffile_name_all_completions): Change documentation --
5251 remove reference to completion-ignored-extensions.
5252 * dired.c (vars_of_dired): Change documentation for
5253 completion-ignored-extensions -- remove reference to
5254 file-name-all-completions.
5256 2002-03-06 Jerry James <james@xemacs.org>
5258 * emodules.c (emodules_load): Fix multiple loading of same module.
5260 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu>
5261 * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5262 RTLD_LAZY to avoid incorrect symbol binding when using nested
5263 shared libraries on Solaris.
5265 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org>
5267 * fileio.c (Ffind_file_name_handler): Improve docstring.
5269 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org>
5271 * fns.c (Fmapconcat): Improve docstring.
5273 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org>
5275 * device-gtk.c: Add prototype for
5276 emacs_gtk_selection_clear_event_handle.
5277 (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5278 selection. Setup signal handler for "selection_clear_event"
5279 (emacs_gtk_selection_clear_event_handle).
5281 * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5282 other applications owning the clipboard (based on
5283 x_handle_selection_clear).
5285 2001-12-23 William M. Perry <wmperry@gnu.org>
5287 * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash.
5289 2002-01-04 Martin Buchholz <martin@xemacs.org>
5291 * keymap.c (define_key_alternate_name): Parenthesize EQ.
5293 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org>
5295 * XEmacs 21.4.6 "Common Lisp" is released.
5297 2001-12-16 Torsten Duwe <duwe@caldera.de>
5299 * search.c (Freplace_match): Add missing sub-expression functionality.
5301 * buffer.c (decode_buffer): Add a check for pointer type to
5302 decode_buffer, before gcc's CSE optimization reorders a
5303 dereference in front of the allow_string test.
5305 2001-11-16 Darryl Okahata <darrylo@xemacs.org>
5307 * window.c (window_loop): Fix bug that sometimes prevented
5308 window_loop() from iterating across multiple devices. Also, at
5309 Ben's request, changed infloop-detecting code to abort() instead
5310 of silently terminating window_loop().
5312 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org>
5314 Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5315 * editfns.c (make_time): New function.
5316 (Fencode_time): Use it instead of wasteful_word_to_lisp.
5317 * lisp.h (make_time): Prototype and comment it.
5318 * dired.c (wasteful_word_to_lisp): Deprecate.
5319 (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5321 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com>
5323 * fileio.c (auto_save_1): Use current coding system, not
5326 2001-11-13 Ben Wing <ben@xemacs.org>
5329 * window.c (window_truncation_on):
5330 * window.c (syms_of_window):
5331 truncate-partial-width-windows should respect the buffer being
5332 displayed, like other redisplay vars.
5334 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp>
5336 * event-stream.c (Fread_key_sequence): save current buffer.
5338 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5340 * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5342 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu>
5344 * alloc.c (lcrecord_stats): Add space for types defined in modules.
5346 2001-10-26 Mike Alexander <mta@arbortext.com>
5348 * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5350 2001-10-25 Andy Piper <andy@xemacs.org>
5353 * dialog-msw.c (handle_directory_proc): new function.
5354 (handle_directory_dialog_box): new fucntion.
5355 (handle_file_dialog_box): use new directory dialog support.
5356 (mswindows_make_dialog_box_internal): ditto.
5357 * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5359 (mswindows_find_frame): make global.
5360 * fileio.c (Fexpand_file_name): build fix.
5361 * general-slots.h: add Qdirectory.
5362 * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5364 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5365 cygwin not leaving win32 paths unchanged.
5366 * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5367 cygwin runtime to do path conversion.
5368 (Fmswindows_shell_execute): fix cygwin handling of URLs.
5369 (syms_of_win32): add new function.
5370 * window.c (window_loop): build fix.
5372 2001-10-15 Andy Piper <andy@xemacs.org>
5374 (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5376 2001-10-23 Stephen J. Turnbull <stephen@xemacs.org>
5378 * XEmacs 21.4.5 "Civil Service" is released.
5380 2001-04-08 Danny Colascione <qtmstr@optonline.net>
5382 * glyphs-x.c: Force buffer-tab highlight update when moving the
5383 buffer, avoiding an ugly black border, used for keyboard focus
5384 indication, on a widget that can never have keyboard focus, the
5387 2001-08-30 Daiki Ueno <ueno@unixuser.org>
5389 * process-unix.c (unix_open_multicast_group): Remove too much
5390 conversion between host and network byte order.
5392 2001-09-10 Nix <nix@esperi.demon.co.uk>
5394 * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5395 before replacing them.
5397 * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5400 * src/window.c (undedicate_windows): Use it.
5401 * src/window.h: Add prototype.
5403 2001-09-17 Ben Wing <ben@xemacs.org>
5405 * fileio.c (normalize_filename):
5406 * fileio.c (Fexpand_file_name):
5407 Fix various C++ compile errors in Andy's recent code.
5409 * callint.c (Fcall_interactively):
5410 * editfns.c (Ftemp_directory):
5411 * editfns.c (Fuser_full_name):
5412 * emacs.c (argmatch):
5413 * lread.c (locate_file_map_suffixes):
5414 * redisplay-x.c (x_ring_bell):
5415 Fix sign-compare warnings.
5417 2001-09-08 Andy Piper <andy@xemacs.org>
5419 * fileio.c (normalize_filename): copied from nt.c
5420 * (Ffile_name_directory): enable win32 paths under cygwin.
5421 * (Ffile_name_nondirectory): ditto.
5422 * (directory_file_name): ditto.
5423 * (Fexpand_file_name): ditto.
5424 * (Ffile_truename): ditto.
5425 * (Fsubstitute_in_file_name): ditto.
5426 * (Ffile_name_absolute_p): ditto.
5427 * (Ffile_readable_p): ditto.
5429 2001-09-08 Andy Piper <andy@xemacs.org>
5431 * device-msw.c (mswindows_finish_init_device): remove dde
5433 * device-msw.c (mswindows_init_dde): factor out from
5434 mswindows_finish_init_device()
5435 * device-msw.c (init_mswindows_very_early): new function
5436 initialize but don't enable dde.
5437 * emacs.c (main_1): call init_mswindows_very_early.
5439 * event-msw.c (mswindows_dde_callback): only execute when we are
5441 * symsinit.h: declare init_mswindows_very_early.
5443 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5445 [sjt: This has been in 21.5 for months with no complaints.]
5447 * console.h (struct console_methods): Added flags member.
5448 (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5449 (CONMETH_IMPL_FLAG):
5450 (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5451 Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5453 * device.c (window_system_pixelated_geometry): Use the above macros.
5455 * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5456 implememntation flag.
5457 * device.h (DEVICE_DISPLAY_P): Use it.
5459 * frame.c (delete_frame_internal): Use the above macro.
5461 * redisplay.c (redisplay_device): Use it.
5462 (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5463 (redisplay_frame): Ditto.
5465 * device-msw.c (mswindows_device_implementation_flags): Removed.
5466 (msprinter_device_implementation_flags): Removed.
5467 (console_type_create_device_mswindows): Removed references to
5468 implementation_flags methods, set implementation flags here.
5469 (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5471 * device-gtk.c (gtk_device_implementation_flags): Removed method.
5472 (console_type_create_device_gtk): Removed method declaration.
5473 Added commented out statement which semantically matches the
5474 commented out statement in the above removed method.
5476 2001-04-14 Gordon Sadler <gbsadler1@lcisp.com>
5478 The attached patch fixes a few warnings.
5480 * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5481 * src/frame-gtk.c: guard against GNOME calls in GTK only
5482 * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5483 * src/select-gtk.c: prototype lisp_to_time
5485 2001-06-08 Ben Wing <ben@xemacs.org>
5487 ------ gc-in-window-procedure fixes ------
5490 * alloc.c (struct post_gc_action):
5491 * alloc.c (register_post_gc_action):
5492 * alloc.c (run_post_gc_actions):
5493 * alloc.c (garbage_collect_1):
5494 Create "post-gc actions", to avoid those dreaded "GC during window
5495 procedure" problems.
5498 Abort, clean and simple, when GC in window procedure. We want
5499 to flush these puppies out.
5502 * glyphs-msw.c (finalize_destroy_window):
5503 * glyphs-msw.c (mswindows_finalize_image_instance):
5504 Use a post-gc action when destroying subwindows.
5507 Declare register_post_gc_action().
5510 * scrollbar-msw.c (unshow_that_mofo):
5511 Use a post-gc action when unshowing scrollbar windows, if in gc.
5513 * redisplay.c (mark_redisplay):
5514 Add comment about the utter evilness of what's going down here.
5516 ------ cygwin setitimer fixes ------
5518 * Makefile.in.in (sheap_objs):
5519 * Makefile.in.in (profile_objs):
5520 * Makefile.in.in (objs):
5521 Compile profile.c only when HAVE_SETITIMER.
5523 * nt.c (mswindows_sigset):
5524 * nt.c (mswindows_sighold):
5525 * nt.c (mswindows_sigrelse):
5526 * nt.c (mswindows_sigpause):
5527 * nt.c (mswindows_raise):
5528 * nt.c (close_file_data):
5532 Move setitimer() emulation to win32.c, because Cygwin needs it too.
5535 * profile.c (Fstart_profiling):
5536 * profile.c (Fstop_profiling):
5537 Make sure we don't compile if no setitimer(). Use qxe_setitimer()
5538 instead of just plain setitimer().
5541 * signal.c (set_one_shot_timer):
5543 Define qxe_setitimer() as an encapsulation around setitimer() --
5544 call setitimer() directly unless Cygwin or MS Win, in which case
5545 we use our simulated version in win32.c.
5548 * systime.h (struct itimerval):
5549 * systime.h (ITIMER_REAL):
5550 Prototype mswindows_setitimer() and qxe_setitimer(). Long
5551 comment about "qxe" and the policy regarding encapsulation.
5554 * win32.c (setitimer_helper_proc):
5555 * win32.c (setitimer_helper_period):
5556 * win32.c (setitimer_helper):
5557 * win32.c (mswindows_setitimer):
5558 Move setitimer() emulation here, so Cygwin can use it.
5559 Rename a couple of functions and variables to be longer and more
5560 descriptive. In setitimer_helper_proc(), send the signal
5561 using either mswindows_raise() or (on Cygwin) kill(). If for
5562 some reason we are still getting lockups, we'll change the kill()
5563 to directly invoke the signal handlers.
5565 ------ windows shell fixes ------
5569 Comments about how these two files must die.
5571 * callproc.c (init_callproc):
5572 On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5573 not just COMSPEC. (more correct and closer to FSF.) Don't
5574 force a value for SHELL into the environment. (Comments added
5575 to explain why not.)
5577 * nt.c (init_user_info):
5578 Don't shove a fabricated SHELL into the environment. See above.
5580 2001-06-01 Ben Wing <ben@xemacs.org>
5582 * Makefile.in.in (ldflags):
5583 eliminate that pesky "defaulting to 00401000" warning.
5587 2001-06-15 Golubev I. N. <gin@mo.msk.ru>
5589 * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5590 * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5592 2001-04-24 Jerry James <james@xemacs.org>
5594 * faces.h: pass parameters to Fadd_spec_to_specifier in the
5597 2001-06-01 Ben Wing <ben@xemacs.org>
5599 * event-msw.c (debug_mswin_messages):
5600 conditionalize the messages that were causing compile errors.
5601 (if only macros could generate #ifdef statements ...)
5603 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org>
5605 * XEmacs 21.4.4 "Artificial Intelligence" is released.
5607 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5609 * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5611 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org>
5613 * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5614 * process-unix.c (unix_canonicalize_host_name):
5615 sysdep.c (init_system_name):
5616 Use it to conditionally support IPv6 canonicalization.
5618 2001-05-31 Paul Stodghill <stodghil@cs.cornell.edu>
5621 Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5623 2001-05-19 Paul Krause <paulkrause1@mediaone.net>
5625 * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5626 attempt is made to scroll when no scroll bar is available.
5628 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5630 * input-method-motif.c (XIM_delete_frame): New callback.
5631 (XIM_init_frame): Register it. (Reapplied by SJT, it somehow
5632 got deleted from 21.4.3.)
5634 2001-06-01 Ben Wing <ben@xemacs.org>
5636 * nt.c (mswindows_utime):
5637 * nt.c (close_file_data):
5638 fix off-by-one-indirection error.
5640 2001-05-29 Adrian Aichner <adrian@xemacs.org>
5642 * fileio.c: Include nt.h. Remove lisp_string_set_file_times()
5643 because set_file_times() now takes Lisp_Object path, instead of
5645 * nt.c: Include buffer.h.
5646 * nt.c (convert_from_time_t): New.
5647 * nt.c (mswindows_utime): New. Use utime, since SetFileTime does
5648 not set mtime correctly.
5649 * nt.h: Declare mswindows_utime().
5650 * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5651 path, instead of char*.
5652 * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5654 2001-05-30 Ben Wing <ben@xemacs.org>
5658 (Stephen, just take all event-msw.c patches. This includes
5659 the "iconify" fix below.)
5662 * event-msw.c (mswindows_dequeue_dispatch_event):
5663 * event-msw.c (assert):
5664 * event-msw.c (emacs_mswindows_quit_p):
5665 * event-msw.c (debug_mswin_messages):
5666 * event-msw.c (debug_output_mswin_message):
5667 * event-msw.c (vars_of_event_mswindows):
5668 Fix yet more problems with C-g handling.
5669 Implement debug-mswindows-events.
5671 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5673 * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5675 2001-05-23 Ben Wing <ben@xemacs.org>
5677 * event-msw.c (winsock_writer):
5678 * event-msw.c (winsock_closer):
5679 prior kludgy code was clobbering the buffer, thinking it was
5680 "unused" space to store an unneeded return value; instead, use
5681 the variable we've already got staring us in the face.
5683 2001-05-17 Andy Piper <andy@xemacs.org>
5685 * sysfile.h: don't assume that file attributes are boolean
5687 2001-05-23 Ben Wing <ben@xemacs.org>
5689 * device-msw.c (msprinter_init_device):
5690 signal an error rather than crash with an unavailable network
5691 printer (from Mike Alexander).
5694 * event-msw.c (struct winsock_stream):
5695 * event-msw.c (winsock_writer):
5696 * event-msw.c (winsock_closer):
5697 * event-msw.c (make_winsock_stream_1):
5698 cleanup headers. fix (hopefully) an error with data corruption
5699 when sending to a network connection.
5701 * fileio.c (Fexpand_file_name): Fix evil code that attempts
5702 to handle the ~user prefix by (a) always assuming we're referencing
5703 ourselves and not even verifying the user -- hence any file with
5704 a tilde as its first char is invalid! (b) if there wasn't a slash
5705 following the filename, the pointer was set *past* the end of
5706 file and we started reading from uninitialized memory. Now we
5707 simply treat these as files, always.
5709 * buffer.c (common_init_complex_vars_of_buffer): comment change.
5711 2001-05-19 Ben Wing <ben@xemacs.org>
5713 * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5716 * process-nt.c (vars_of_process_nt):
5717 remove unused mswindows-quote-process-args. rec for 21.4.
5719 2001-05-12 Ben Wing <ben@xemacs.org>
5721 * event-msw.c (mswindows_dde_callback):
5722 * event-msw.c (mswindows_wnd_proc):
5723 eliminate cygwin warnings.
5725 2001-05-06 Ben Wing <ben@xemacs.org>
5729 * device-msw.c (print_dialog_worker):
5730 * device-msw.c (mswindows_handle_print_dialog_box):
5731 * device-msw.c (syms_of_device_mswindows):
5732 * dialog-msw.c (mswindows_make_dialog_box_internal):
5734 implement printing the selection when it's selected.
5736 2001-05-20 Drazen Kacar <dave@arsdigita.com>
5738 * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5740 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5742 * lisp.h (EMACS_INT_MAX): This should be one bit less since
5743 EMACS_INT is signed.
5745 2001-04-15 Michael Lausch <mla@1012surf.net>
5747 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5748 gtk_widget_request_size() to give scrollbar >0 width for
5751 2001-05-30 William M. Perry <wmperry@gnu.org>
5753 * event-gtk.c: Check for buttons as modifier keys.
5755 2001-05-25 Craig Lanning <CraigL@Knology.net>
5758 Properly find MinGW's <process.h> inside Cygwin's restructured
5759 include directories. Don't try to include <cygwin/version.h>
5760 since we are dropping support for MinGW in versions of Cygwin
5763 Drop support for MinGW in versions of Cygwin before b21.
5765 Properly find MinGW's <process.h> inside Cygwin's restructured
5766 include directories.
5768 Drop support for MinGW in versions of Cygwin before b21.
5770 Even though a.out.h is no longer detected by configure, allow
5771 MinGW to use it until we figure out how to do the job with Win32.
5773 2001-07-11 Matt Tucker <tuck@whistlingfish.net>
5775 * syntax.c (find_start_of_comment):
5776 Fix `unbalanced parentheses' bug when dealing with mixed comment
5777 styles in c++/java/etc. mode
5779 2001-05-29 Mike Alexander <mta@arbortext.com>
5781 * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5782 FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5784 2001-05-17 Andrew Begel <abegel@eecs.berkeley.edu>
5786 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5788 2001-03-31 Mike Sperber <mike@xemacs.org>
5790 * search.c (Freplace_match): Support FSF-style specification of
5791 match subexpression when applied to a buffer.
5793 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5795 * event-stream.c (is_scrollbar_event): add missing semicolon
5797 2001-05-22 Isaac Hollander <ysh@mindspring.com>
5799 * Makefile.in.in: Use TAR macro instead of hardcoding
5800 tar. Allows use of GNU tar instead of system tar
5802 2001-05-27 Karl M. Hegbloom <karlheg@hegbloom.net>
5804 * event-stream.c (is_scrollbar_event): add missing semicolon
5806 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5808 * XEmacs 21.4.3 "Academic Rigor" is released.
5810 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org>
5812 * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5814 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5816 * buffer.c (Vcase_fold_search): Remove obsolete
5817 comment about non ASCII case-fold-search. This
5818 bug has been fixed by case-table changes.
5820 2001-05-11 Stephen J. Turnbull <stephen@xemacs.org>
5822 * event-msw.c: Restore include of events-mod.h.
5824 2001-04-22 zhaoway <zw@debian.org>
5826 * event-stream.c (is_scrollbar_event): Noop returning 0 if
5829 2001-05-10 Stephen J. Turnbull <stephen@xemacs.org>
5831 * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5833 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
5835 * mule-charset.c (Fmake_charset): Add missing else.
5837 2001-04-23 Ben Wing <ben@xemacs.org>
5839 * event-msw.c (FAKE_MOD_QUIT):
5840 * event-msw.c (mswindows_dequeue_dispatch_event):
5841 * event-msw.c (mswindows_wnd_proc):
5842 * event-msw.c (emacs_mswindows_quit_p):
5843 Get critical quit working.
5845 2001-05-05 Ben Wing <ben@xemacs.org>
5849 * device-msw.c (mswindows_get_default_margin):
5850 * frame-msw.c (mswindows_size_frame_internal):
5851 * frame-msw.c (msprinter_init_frame_1):
5852 * frame-msw.c (vars_of_frame_mswindows):
5853 Change top/bottom margin defaults to 0.5 inches.
5855 2001-05-01 Martin Buchholz <martin@xemacs.org>
5857 Fix link error with gcc 3.0 on Linux.
5858 * terminfo.c (UP): Remove.
5859 * terminfo.c (BC): Remove.
5860 * terminfo.c (PC): Remove.
5861 They weren't used, and in any case, these symbols should be
5862 defined in the *library*.
5864 2001-05-03 Martin Buchholz <martin@xemacs.org>
5866 * s/aix4.h: Fix crash with xlc -O3.
5867 Improve comment explaining how -O3 works.
5869 2001-04-15 Ben Wing <ben@xemacs.org>
5872 * event-stream.c (Fnext_event):
5873 * event-stream.c (is_scrollbar_event):
5874 * event-stream.c (execute_command_event):
5875 Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5876 crash' problem. His fix introduces other problems. We filter
5877 out scrollbar events specifically, making them somewhat invisible
5878 to command-building, and not appearing in `this-command-keys'.
5879 More work is still needed (see comments in event-stream.c), but
5880 this fixes all the major problems.
5882 2001-04-20 Ben Wing <ben@xemacs.org>
5884 * .cvsignore: Added stuff for Windows.
5886 2001-04-28 Ben Wing <ben@xemacs.org>
5888 * buffer.c (Ferase_buffer):
5889 * editfns.c (buffer_insert1):
5890 * editfns.c (Finsert_before_markers):
5891 * editfns.c (Finsert_string):
5892 * editfns.c (Finsert_char):
5893 * editfns.c (Fdelete_region):
5894 * editfns.c (Fwiden):
5895 * editfns.c (Fnarrow_to_region):
5896 remove bogus lines setting zmacs_region_stays to 0.
5898 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk>
5900 * process-unix.c (unix_open_network_stream): If connect() fails
5901 invalidate file descriptor after closing it.
5903 2001-03-08 Mike Alexander <mta@arbortext.com>
5905 * event-msw.c (mswindows_need_event_in_modal_loop):
5906 Don't dispatch a message if we didn't get one.
5907 (mswindows_need_event):
5908 Terminate the correct process when one exits instead of the first
5909 one on Vprocess_list and look for process termination when in
5910 mswindows_protect_modal_loop.
5912 2001-04-19 Stephen J. Turnbull <stephen@xemacs.org>
5914 * XEmacs 21.4.1 "Copyleft" is released.
5916 2001-04-19 Glynn Clements <glynn.clements@virgin.net>
5918 * input-method-motif.c (XIM_delete_frame): New callback.
5919 (XIM_init_frame): Register it.
5921 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
5923 * XEmacs 21.4.0 "Solid Vapor" is released.
5925 2001-04-15 Ben Wing <ben@xemacs.org>
5927 * cmdloop.c (call_command_loop):
5928 Fix braino in bit-rotting code.
5930 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com>
5932 * extents.c (Fset_extent_endpoints): Force creation of extent info
5933 in buffer_or_string.
5935 * extents.c (process_extents_for_insertion_mapper): Correctly
5936 check for open-open zero-length extents.
5938 2001-04-16 Stephen J. Turnbull <stephen@xemacs.org>
5940 * lisp.h: New typedefs Memory_count, Element_count.
5943 Sign-compare warning elimination: several unsigned -> signed.
5944 Based on work by Ben Wing <ben@xemacs.org>.
5946 2001-04-14 Stephen J. Turnbull <stephen@xemacs.org>
5948 * XEmacs 21.2.47 "Zephir" is released.
5950 2001-04-02 Jan Vroonhof <jan@xemacs.org>
5952 * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5954 2001-04-03 Mike Sperber <mike@xemacs.org>
5956 * search.c: Revert previous patch due because of release.
5958 2001-03-30 Ben Wing <ben@xemacs.org>
5961 Add missing killpg prototype.
5964 Add a comment about fixing problems when a new entry is added
5967 * frame-msw.c (mswindows_init_frame_1):
5968 Fix compile warnings.
5970 * menubar.c (vars_of_menubar):
5971 Provide `menu-accelerator-support' to indicate that we properly
5972 support %_ in menu specifications, so that package code can
5973 conditionalize on this (and remove %_ from menu specifications
5978 * scrollbar-msw.c (can_scroll):
5980 Fix handling of mouse wheel under Windows to follow standards --
5981 now scrolls window under pointer, not selected window.
5983 2001-03-31 Mike Sperber <mike@xemacs.org>
5985 * search.c (Freplace_match): Support FSF-style specification of
5986 match subexpression when applied to a buffer.
5988 2001-03-15 Martin Buchholz <martin@xemacs.org>
5990 * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5991 function to modify KEYMAP, so map over a copy of the hash table.
5993 2001-03-21 Martin Buchholz <martin@xemacs.org>
5995 * XEmacs 21.2.46 "Urania" is released.
5997 2001-03-20 Dan Holmsand <dan@eyebee.com>
5999 * realpath.c (xrealpath): Make file-truename work with symlinks to
6000 /cygdrive paths on cygwin. Always lowercase drive-letters on
6002 (cygwin_readlink): Don't try to find canonical filename unless
6005 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org>
6007 * ChangeLog: Log GTK merge.
6013 Revert gratuitous whitespace changes from GTK merge.
6015 * emacs.c: Document end of complex #ifdef @ l. 1495.
6018 2001-03-12 Andy Piper <andy@xemacs.org>
6020 * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6021 have to do likewise.
6023 2001-03-12 Andy Piper <andy@xemacs.org>
6025 * sysdep.c: we only support mingw now.
6027 2001-03-09 Andy Piper <andy@xemacs.org>
6029 * unexcw.c (copy_executable_and_dump_data_section): making approx
6030 overrun a warning only.
6032 2001-03-10 William M. Perry <wmperry@aventail.com>
6034 * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6035 satisfy Stephen's identical-after-cpp plea.
6037 2001-03-02 Ben Wing <ben@xemacs.org>
6040 * cmds.c (Fforward_char):
6044 Augment documentation of the most common motion commands to make
6045 note of the shifted-motion support.
6047 2001-03-02 Ben Wing <ben@xemacs.org>
6049 * nt.c (mswindows_fstat):
6050 * nt.c (mswindows_stat):
6051 * search.c (boyer_moore):
6052 Fix compile warnings under Windows.
6054 * sysdep.c (sys_readdir):
6055 Fix buggy filename-conversion code under Mule.
6057 2001-03-09 William M. Perry <wmperry@aventail.com>
6079 * redisplay-output.c:
6085 The Great GTK Merge.
6092 * emacs-widget-accessors.c:
6106 * native-gtk-toolbar.c:
6117 The Great GTK Merge: new files.
6119 2001-02-26 Ben Wing <ben@xemacs.org>
6121 Reapplied Lstream change.
6123 2001-02-26 Ben Wing <ben@xemacs.org>
6125 Undid the last change, since it is more controversial than I
6126 thought. It should be back in at some point soon.
6128 2001-02-25 Ben Wing <ben@xemacs.org>
6131 * callproc.c (Fold_call_process_internal):
6132 * event-msw.c (ntpipe_slurp_reader):
6133 * event-msw.c (ntpipe_shove_writer):
6134 * event-msw.c (winsock_reader):
6135 * event-msw.c (winsock_writer):
6137 * file-coding.c (detect_eol_type):
6138 * file-coding.c (detect_coding_type):
6139 * file-coding.c (determine_real_coding_system):
6140 * file-coding.c (Fdetect_coding_region):
6141 * file-coding.c (decoding_reader):
6142 * file-coding.c (decoding_writer):
6143 * file-coding.c (mule_decode):
6144 * file-coding.c (Fdecode_coding_region):
6145 * file-coding.c (encoding_reader):
6146 * file-coding.c (encoding_writer):
6147 * file-coding.c (mule_encode):
6148 * file-coding.c (Fencode_coding_region):
6149 * file-coding.c (detect_coding_sjis):
6150 * file-coding.c (decode_coding_sjis):
6151 * file-coding.c (encode_coding_sjis):
6152 * file-coding.c (detect_coding_big5):
6153 * file-coding.c (decode_coding_big5):
6154 * file-coding.c (encode_coding_big5):
6155 * file-coding.c (detect_coding_ucs4):
6156 * file-coding.c (decode_coding_ucs4):
6157 * file-coding.c (encode_coding_ucs4):
6158 * file-coding.c (detect_coding_utf8):
6159 * file-coding.c (decode_coding_utf8):
6160 * file-coding.c (encode_coding_utf8):
6161 * file-coding.c (detect_coding_iso2022):
6162 * file-coding.c (decode_coding_iso2022):
6163 * file-coding.c (encode_coding_iso2022):
6164 * file-coding.c (decode_coding_no_conversion):
6165 * file-coding.c (encode_coding_no_conversion):
6166 * glyphs-x.c (write_lisp_string_to_temp_file):
6167 * gpmevent.c (tty_get_foreign_selection):
6170 * lstream.c (Lstream_flush_out):
6171 * lstream.c (Lstream_adding):
6172 * lstream.c (Lstream_write_1):
6173 * lstream.c (Lstream_write):
6174 * lstream.c (Lstream_raw_read):
6175 * lstream.c (Lstream_read_more):
6176 * lstream.c (Lstream_read):
6177 * lstream.c (Lstream_unread):
6178 * lstream.c (Lstream_fputc):
6179 * lstream.c (stdio_reader):
6180 * lstream.c (stdio_writer):
6181 * lstream.c (filedesc_reader):
6182 * lstream.c (filedesc_writer):
6183 * lstream.c (lisp_string_reader):
6184 * lstream.c (struct fixed_buffer_stream):
6185 * lstream.c (make_fixed_buffer_input_stream):
6186 * lstream.c (make_fixed_buffer_output_stream):
6187 * lstream.c (fixed_buffer_reader):
6188 * lstream.c (fixed_buffer_writer):
6189 * lstream.c (struct resizing_buffer_stream):
6190 * lstream.c (resizing_buffer_writer):
6191 * lstream.c (dynarr_writer):
6192 * lstream.c (lisp_buffer_reader):
6193 * lstream.c (lisp_buffer_writer):
6195 * lstream.h (lstream_implementation):
6196 * lstream.h (struct lstream):
6198 * process-nt.c (nt_send_process):
6199 * process-unix.c (unix_send_process):
6201 Correct Lstream lossage due to mixing of signed and unsigned
6202 quantities. All Lstream uses of size_t and ssize_t are now a
6203 single signed data type Lstream_data_count. This fixes problems
6204 under Windows with sending large quantities of data to a process,
6205 and may well fix other subtle bugs.
6207 2001-02-23 Martin Buchholz <martin@xemacs.org>
6209 * XEmacs 21.2.45 "Thelxepeia" is released.
6211 2001-02-21 Martin Buchholz <martin@xemacs.org>
6213 * lisp-union.h (XSETINT):
6216 Reverse previous change of 2001-02-06.
6218 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
6220 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6222 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6223 * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6224 Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6225 * regex.c (POS_AS_IN_BUFFER): removed
6226 * regex.c (re_search_2):
6227 * regex.c (re_match_2):
6228 Don't use an offset of 1 when calculating buffer positions, since
6229 `BI_BUF_BEGV' does it already.
6231 2001-02-18 Wim Dumon <wim@easics.be>
6233 * insdel.c (prepare_to_modify_buffer): Also check for
6234 supersession when clash-detection is enabled.
6236 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
6238 * regex.c (re_match_2_internal):
6239 Convert temp characters from 'const unsigned char' to 're_char'.
6240 Fix crashing bug with extended characters under mule.
6241 * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6242 syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6243 font-lock, pdump, and new syntax-table code.
6244 * syntax.c (find_start_of_comment):
6245 (find_end_of_comment):
6247 Fix crashing bugs involving moving beyond end of buffer.
6248 * syntax.c (find_start_of_comment):
6249 Fixed logic to allow proper detection of cases where the same
6250 character is used to end both a two-char comment start and a
6251 two-char comment end sequence. Fixes `(forward-comment -1)'.
6252 * syntax.c (find_start_of_comment):
6253 Return position just past last comment-end character for all cases
6254 (previously was only done for two-char comment-end sequences).
6255 * syntax.c (forward-comment):
6256 Take value returned from `find_end_of_comment', rather than
6258 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6259 Properly deal with BUFFERP (syntax_cache.object)
6261 2001-02-17 Martin Buchholz <martin@xemacs.org>
6263 * alloc.c (Fgarbage_collect):
6264 * alloc.c (make_bit_vector_from_byte_vector):
6265 -Wsign-compare-correctness.
6267 2001-02-16 Martin Buchholz <martin@xemacs.org>
6269 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6270 (XSETCHAR): Likewise.
6271 (XSETOBJ): Likewise.
6273 2001-02-15 Martin Buchholz <martin@xemacs.org>
6275 * mule-canna.c (canna-func-delete_previous):
6276 Rename to canna-func-delete-previous.
6278 2001-02-14 Martin Buchholz <martin@xemacs.org>
6280 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
6282 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
6284 * font-lock.c (find_context): Fix C++ compile errors introduced by
6287 2001-02-13 Martin Buchholz <martin@xemacs.org>
6289 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6290 pragma, but earlier ones barf on the same pragma.
6292 2001-02-06 Mike Sperber <mike@xemacs.org>
6294 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6295 `configure-mule-lisp-directory'.
6297 2001-02-12 Martin Buchholz <martin@xemacs.org>
6299 Make sure dump-id.c is compiled in the same way as other .c's.
6300 Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6301 * dump-id.h: Remove.
6302 * emacs.c: Move dump-id.h into dumper.h.
6303 * dumper.h: Move dump-id.h into dumper.h.
6305 Use standard .c.o rule for building dump-id.o.
6306 Remove preprocessor flags from link command.
6307 Add dump-id.o to ${otherobjs} if PDUMP.
6309 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
6311 Port FSF 20.7 syntax table improvements.
6315 Fixups for new syntax table stuff.
6316 * dired.c: Include syntax.c.
6317 (Fdirectory_files): Initialize regex_match_object and
6319 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6320 and Fget_char_property.
6322 Use ported FSF 20.7 syntax table improvements.
6327 2001-02-09 Martin Buchholz <martin@xemacs.org>
6329 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6330 Unixware's enum boolean from sys/types.h.
6332 2001-02-10 Martin Buchholz <martin@xemacs.org>
6334 Fix support for building with latest Purify.
6335 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6336 (PURIFY_FLAGS): Likewise.
6338 2001-02-09 Martin Buchholz <martin@xemacs.org>
6340 * fileio.c (lisp_string_set_file_times): New.
6341 * fileio.c (Fcopy_file): Use it.
6343 (copy-file filename non-ascii-filename t t)
6344 ==> No such file or directory, non-ascii-filename
6346 2001-02-10 Martin Buchholz <martin@xemacs.org>
6348 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6349 USHRT_MAX seems clearer than ~0 anyways.
6351 2001-02-09 Martin Buchholz <martin@xemacs.org>
6353 dumper improvements. Inspired by Olivier.
6354 * dumper.c (pdump_max_align): New.
6355 * dumper.c (pdump_add_entry): Use pdump_max_align.
6356 * dumper.c (pdump_get_entry_list): Likewise.
6357 * dumper.c (pdump_scan_by_alignment): Likewise.
6358 Don't iterate through unnecessary alignments.
6359 * dumper.c (pdump_file_get): No need to align result of malloc().
6360 * dumper.c (pdump_mallocadr): Remove.
6361 The result of malloc() is guaranteed to be maximally aligned.
6362 * dumper.c: s/elmt/elt/g;
6363 * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6364 * dumper.c (pdump_alert_undump_object): Likewise.
6365 * dumper.c (pdump_align_table):
6366 Don't support alignments > 64.
6367 Store ALIGNOF's, not shift counts, in table.
6369 2001-02-09 Martin Buchholz <martin@xemacs.org>
6371 * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6372 * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6373 * systime.h: Use HAVE_UTIME.
6374 * sysdep.c (struct utimbuf): Remove.
6375 * sysdep.c (set_file_times): Prefer utime() to utimes().
6376 * config.h.in (HAVE_UTIME): New.
6377 * config.h.in (HAVE_UTIME_H): Remove.
6378 * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6380 2001-02-09 Martin Buchholz <martin@xemacs.org>
6382 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6384 2001-02-08 Martin Buchholz <martin@xemacs.org>
6386 * s/irix6-0.h: Use the standard system memmove, not bcopy.
6388 2001-02-08 Martin Buchholz <martin@xemacs.org>
6390 * XEmacs 21.2.44 "Thalia" is released.
6392 2001-02-06 Martin Buchholz <martin@xemacs.org>
6394 Fixes crashes in kill-emacs on some systems.
6395 * process-unix.c (unix_kill_child_process):
6396 It's OK for kill() to fail with ESRCH.
6398 2001-02-07 Martin Buchholz <martin@xemacs.org>
6400 Contortions to make .gdbinit tricks work on most systems.
6401 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6402 * alloc.c (dbg_valmask): Make non-const.
6403 * alloc.c (dbg_typemask): Make non-const.
6404 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6405 * alloc.c (dbg_valbits): Make non-const.
6406 * alloc.c (dbg_gctypebits): Make non-const.
6407 * .gdbinit (decode_object): Make it work with AIX cc.
6409 2001-02-06 Martin Buchholz <martin@xemacs.org>
6411 * elhash.c (make_general_lisp_hash_table):
6412 Use simpler and more efficient calloc to clear entries.
6414 2001-02-07 Martin Buchholz <martin@xemacs.org>
6416 * window.c (window_scroll): Work around an AIX C compiler bug.
6417 Fixes 'scroll-up' does nothing problem with xlC.
6419 2001-02-05 Martin Buchholz <martin@xemacs.org>
6421 * .gdbinit: Remove obsolete comment.
6423 2001-01-31 Mike Alexander <mta@arbortext.com>
6425 * select.c (Fown_selection_internal): Set owned_p for device
6428 2001-02-01 Martin Buchholz <martin@xemacs.org>
6431 "not" cannot be used as a macro name as it is an operator in C++
6432 * config.h.in: Stop #defining `not'.
6433 * chartab.c (check_category_char): not ==> not_p
6434 * chartab.h: Likewise.
6435 * regex.c (re_match_2_internal): Likewise.
6437 2001-02-02 Martin Buchholz <martin@xemacs.org>
6439 * lisp-disunion.h: Fix up comments.
6441 2001-01-31 Martin Buchholz <martin@xemacs.org>
6443 * keymap.c (define_key_check_and_coerce_keysym):
6445 Support mouse-6 and mouse-7 bindings in the obvious way.
6447 2001-02-01 Martin Buchholz <martin@xemacs.org>
6449 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6451 2001-01-30 Martin Buchholz <martin@xemacs.org>
6453 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6454 Previous patch missed DEFVAR_INT_MAGIC.
6455 Make sure future DEFVAR_foo use correct types.
6456 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6457 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6458 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6459 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6460 * (DEFVAR_INT): Likewise.
6461 * redisplay.c (vertical_clip): Should be of type Fixnum.
6462 * redisplay.c (horizontal_clip): Likewise.
6463 * lisp.h (dump_add_opaque_int): New.
6464 (dump_add_opaque_fixnum): New.
6466 2001-01-29 Andy Piper <andy@xemacs.org>
6468 * glyphs-widget.c (check_valid_int_or_function): allow symbols
6469 since they can be eval'ed
6471 2001-01-29 Martin Buchholz <martin@xemacs.org>
6473 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6474 Oops, XEmacs redefines `class'. Use `typename' instead.
6476 2001-01-28 Martin Buchholz <martin@xemacs.org>
6478 * dumper.c: Fix C++ compile errors.
6480 2001-01-29 Martin Buchholz <martin@xemacs.org>
6482 * tparam.c: Use correct prototypes.
6484 2001-01-28 Martin Buchholz <martin@xemacs.org>
6486 * sysproc.h: #include util.h for NetBSD's openpty.
6488 2001-01-27 Martin Buchholz <martin@xemacs.org>
6490 More 64-bit correctness.
6491 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6492 Use a typedef `fixnum' for the type used for DEFVAR_INT.
6494 This finally finishes the 64-bit SGI port.
6495 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6496 * symbols.c: Fix up comments and type casts.
6497 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6498 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6499 * symeval.h (Fixnum): New type.
6500 * symeval.h (symbol_value_type): Fix up comment.
6516 * mule-canna.c: A million DEFVAR_INTs here...
6517 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6530 s/int/Fixnum/g in DEFVAR_INT declarations.
6532 2001-01-26 Martin Buchholz <martin@xemacs.org>
6534 Port pdump to SGI alignment-sensitive environment.
6535 Lisp Object sizeof methods now return aligned sizes. Rely on that.
6536 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6538 Define and use aligned reading and writing macros.
6539 Use buffered stdio instead of posix i/o for faster dumping.
6540 Eliminate kludgy 256 byte space for header.
6541 Read and write from dump file using structs for alignment safety.
6542 * dumper.c (pdump_align_stream): New.
6543 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6544 * dumper.c (PDUMP_READ_ALIGNED): New.
6545 * dumper.c (PDUMP_WRITE_ALIGNED): New.
6546 * dumper.c (pdump_static_Lisp_Object): New struct.
6547 * dumper.c (pdump_static_pointer): New struct.
6548 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6549 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6550 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6551 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6553 * dumper.c (pdump_backtrace):
6554 * dumper.c (pdump_get_indirect_count):
6555 * dumper.c (pdump_register_object):
6556 * dumper.c (pdump_register_struct):
6557 * dumper.c (pdump_reloc_one):
6558 * dumper.c (pdump_scan_by_alignment):
6559 * dumper.c (pdump_dump_from_root_struct_ptrs):
6560 * dumper.c (pdump_dump_opaques):
6561 * dumper.c (pdump_dump_rtables):
6562 * dumper.c (pdump_dump_from_root_objects):
6564 * dumper.c (pdump_load_finish):
6565 Use aligned reading and writing.
6567 * dumper.c (pdump_free): Make static.
6568 * dumper.c (pdump_hFile): Likewise.
6569 * dumper.c (pdump_hMap): Likewise.
6571 2001-01-26 Martin Buchholz <martin@xemacs.org>
6573 * XEmacs 21.2.43 "Terspichore" is released.
6575 2001-01-25 Martin Buchholz <martin@xemacs.org>
6577 Type fiddling for window_config.saved_windows_count
6578 * window.c (struct window_config):
6579 Make saved_windows_count member unsigned.
6580 * window.c (sizeof_window_config_for_n_windows):
6581 Make parameter unsigned.
6582 * window.c (mark_window_config):
6583 * window.c (window_config_equal):
6584 * window.c (free_window_configuration):
6585 * window.c (Fset_window_configuration):
6586 * window.c (count_windows):
6587 * window.c (Fcurrent_window_configuration):
6588 * window.c (reinit_vars_of_window):
6589 Update all callers and users.
6591 2001-01-25 Martin Buchholz <martin@xemacs.org>
6593 Alignment correctness for flexible arrays.
6594 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6595 Make alignment-correct. Add interesting comments.
6596 * alloc.c (size_vector):
6597 * alloc.c (make_vector_internal):
6598 * alloc.c (make_bit_vector_internal):
6599 * alloc.c (sweep_bit_vectors_1):
6600 * fns.c (size_bit_vector):
6601 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6602 * window.c (sizeof_window_config_for_n_windows):
6603 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6605 2001-01-24 Martin Buchholz <martin@xemacs.org>
6607 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6609 2001-01-23 Andy Piper <andy@xemacs.org>
6611 * select.c (Fown_selection_internal): pass owned_p
6613 * select-msw.c (mswindows_own_selection): New Signature.
6615 * console.h (struct console_methods): add owned_p to
6618 * select-x.c (x_own_selection): pass owned_p
6619 (hack_motif_clipboard_selection): use owned_p
6620 (vars_of_select_x): new variable -
6621 x_selection_strict_motif_ownership.
6623 2001-01-23 Martin Buchholz <martin@xemacs.org>
6625 * specifier.h (specifier_data_offset): Remove pointless parens.
6626 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6628 2001-01-24 Martin Buchholz <martin@xemacs.org>
6630 Make Lisp_Object sizeof methods be alignment-correct.
6631 pdump must restore objects to the same alignment as the C compiler
6632 assumes. It really matters on SGIs.
6633 * lstream.c (aligned_sizeof_lstream): New.
6634 (sizeof_lstream): Use aligned_sizeof_lstream.
6635 (Lstream_new): Likewise.
6636 * opaque.c (aligned_sizeof_opaque): New.
6637 (sizeof_opaque): Use aligned_sizeof_opaque.
6638 (make_opaque): Likewise.
6639 * specifier.c (aligned_sizeof_specifier): New.
6640 (sizeof_specifier): Use aligned_sizeof_specifier.
6641 (make_specifier_internal): Likewise.
6643 2001-01-23 Martin Buchholz <martin@xemacs.org>
6645 * lstream.h (struct lstream): Use max_align_t for trailing data.
6646 * specifier.h (struct Lisp_Specifier): Likewise.
6648 2001-01-22 Martin Buchholz <martin@xemacs.org>
6650 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6651 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6652 (CCL_SUSPEND): Likewise.
6653 (CCL_INVALID_CMD): Likewise.
6654 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6655 (ccl_driver): Likewise.
6656 (CCL_WRITE_CHAR): Macro hygiene.
6657 (CCL_WRITE_STRING): Macro hygiene.
6659 2001-01-22 Martin Buchholz <martin@xemacs.org>
6661 Port "portable" dumper to SunOS 4 and HP-UX.
6662 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6663 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6664 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6666 2001-01-22 Martin Buchholz <martin@xemacs.org>
6668 * lisp.h (ALIGNOF): A better definition for C++.
6670 2001-01-20 Martin Buchholz <martin@xemacs.org>
6673 Fix printf warnings: int format, long int arg.
6674 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6675 (PUSH_FAILURE_POINT): Use correct printf formats.
6676 (POP_FAILURE_POINT): Use correct printf formats.
6677 Use do {...} while (0)
6679 2001-01-20 Martin Buchholz <martin@xemacs.org>
6681 * XEmacs 21.2.42 "Poseidon" is released.
6683 2001-01-20 Martin Buchholz <martin@xemacs.org>
6685 * console-x.h: typo fix du jour. Remove #if 0'ed code.
6687 2001-01-19 Martin Buchholz <martin@xemacs.org>
6689 De-kludgify FIXED_TYPE free list frobbing.
6690 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6691 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6692 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6693 * alloc.c (Lisp_Free): New pseudo lisp object definition.
6694 * alloc.c (LRECORD_FREE_P): New.
6695 * alloc.c (MARK_LRECORD_AS_FREE): New.
6696 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6697 * alloc.c (STRUCT_FREE_P): Deleted.
6698 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6699 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6700 * alloc.c (STRING_CHARS_FREE_P): New.
6701 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6702 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6703 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6704 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6705 * alloc.c (resize_string): Use new definitions.
6706 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6707 * alloc.c (verify_string_chars_integrity): Use new definitions.
6708 * alloc.c (compact_string_chars): Use new definitions.
6709 * alloc.c: Update monster comments.
6710 * lrecord.h (lrecord_type): Add some new lrecord types for
6713 2001-01-18 Martin Buchholz <martin@xemacs.org>
6715 Improve alignment hackery.
6716 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6717 (max_align_t): Moved from opaque.h - general purpose.
6718 (ALIGN_PTR): Use size_t, not long.
6719 * opaque.h (max_align_t): Move to lisp.h.
6721 2001-01-18 Norbert Koch <nk@LF.net>
6723 * gui.h: Fix and add prototypes to fix build problems.
6725 2001-01-18 Martin Buchholz <martin@xemacs.org>
6727 temacs is going away, so `dump-temacs' is now a bad name.
6728 * .dbxrc (dump-temacs): Rename to `dmp'.
6729 * .gdbinit (dump-temacs): Rename to `dmp'.
6731 2001-01-17 Andy Piper <andy@xemacs.org>
6733 * glyphs.c (print_image_instance): comment to make martin happy.
6735 * glyphs-x.c (x_redisplay_widget): update faces after a frame
6738 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6740 (mswindows_tab_control_redisplay): warning suppression.
6742 * glyphs-widget.c (widget_update): re-write to cope with updated
6744 (widget_instantiate): use new gui_item functions.
6745 (tab_control_update): deleted.
6746 (progress_gauge_update): deleted.
6747 (image_instantiator_progress_guage): take out update reference.
6748 (image_instantiator_tree_view): ditto.
6749 (image_instantiator_tab_control): ditto.
6751 * gui.c (widget_gui_parse_item_keywords): new function. Do things
6753 (gui_item_add_keyval_pair): re-write to cope with descriptors and
6754 return whether anything was changed.
6755 (update_gui_item_keywords): as it sounds.
6757 * gui.h: declare widget_gui_parse_item_keywords.
6759 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6760 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6762 2001-01-17 Martin Buchholz <martin@xemacs.org>
6764 * XEmacs 21.2.41 "Polyhymnia" is released.
6766 2001-01-16 Didier Verna <didier@xemacs.org>
6768 * glyphs.c (image_instantiate): don't use fallbacks when
6769 instantiating a face's background pixmap by inheritance.
6771 2001-01-14 Mike Sperber <mike@xemacs.org>
6773 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6774 Conditionalize accordingly.
6776 2001-01-16 Martin Buchholz <martin@xemacs.org>
6778 * dumper.c (pdump_file_get): Fix a compiler warning.
6780 2001-01-15 Martin Buchholz <martin@xemacs.org>
6782 Make Purify happy when pdumping.
6783 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6784 iniitalizing all bits of new lisp object memory.
6785 * symbols.c (Fmake_local_variable): Likewise.
6786 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6787 * symbols.c (Fdefvaralias): Likewise.
6788 * mule-charset.c (vars_of_mule_charset): Likewise.
6790 2001-01-15 Martin Buchholz <martin@xemacs.org>
6791 Add the `-nd' flag when running pre-dump operations under the debugger.
6792 * .dbxrc (run-temacs): Add `-nd'.
6793 * .dbxrc (update-elc): Likewise.
6794 * .dbxrc (dump-temacs): Likewise.
6795 * .gdbinit (run-temacs): Likewise.
6796 * .gdbinit (check-temacs): Likewise.
6797 * .gdbinit (update-elc): Likewise.
6798 * .gdbinit (dump-temacs): Likewise.
6800 2001-01-14 Martin Buchholz <martin@xemacs.org>
6802 Allow building 64-bit executables on AIX with GNU malloc, e.g.
6803 export OBJECT_MODE=64
6804 configure --pdump --use-union-type=no
6805 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6806 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6808 * miscplay.c (sndcnv8U_2mono):
6809 Avoid two uses of `++' in the same expression.
6810 Suppresses a GCC warning.
6812 2001-01-13 Martin Buchholz <martin@xemacs.org>
6814 Make sure future compilers don't miscompile alloc.c.
6816 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6817 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6819 2001-01-12 Martin Buchholz <martin@xemacs.org>
6821 * dumper.c: A little post-pdump-rename comment fixup.
6823 2001-01-09 Jerry James <james@eecs.ku.edu>
6825 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6827 2001-01-13 Martin Buchholz <martin@xemacs.org>
6829 * *.[ch]: Globally rename symbols using the following `pdump-rename'
6833 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6836 replace_symbol pdump_wire_lists pdump_weak_object_chains
6837 replace_symbol pdump_wire_list dump_add_weak_object_chain
6839 replace_symbol pdump_wires pdump_root_objects
6840 replace_symbol pdump_wire dump_add_root_object
6842 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6843 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6845 replace_symbol dumpstructinfos pdump_root_struct_ptrs
6846 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6847 replace_symbol dumpstructinfo pdump_root_struct_ptr
6848 replace_symbol dumpstruct dump_add_root_struct_ptr
6850 replace_symbol dumpopaque dump_add_opaque
6851 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6852 replace_symbol dumpopaqueinfos pdump_opaques
6853 replace_symbol dumpopaqueinfo pdump_opaque
6855 replace_symbol nb_structdump nb_root_struct_ptrs
6856 replace_symbol nb_opaquedump nb_opaques
6858 replace_symbol align_table pdump_align_table
6859 replace_symbol dump_header pdump_header
6861 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6862 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6865 2001-01-12 Martin Buchholz <martin@xemacs.org>
6867 * s/aix4.h: Keep the C for AIX compiler from overaggressively
6868 optimizing bytecount_to_charcount().
6870 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6873 (HAVE_DLFCN_H): Removed.
6874 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6876 2001-01-06 Martin Buchholz <martin@xemacs.org>
6878 Portable dumper maintainability improvements.
6879 * alloc.c (staticpro):
6880 * alloc.c (staticpro_nodump):
6881 * alloc.c (garbage_collect_1):
6882 * alloc.c (reinit_alloc_once_early):
6883 * alloc.c (init_alloc_once_early):
6884 * alloc.c: Move dumper functions to alloc.c.
6885 * dumper.c (pdump_backtrace):
6886 * dumper.c (pdump_dump_structs):
6887 * dumper.c (pdump_dump_opaques):
6888 * dumper.c (pdump_dump_rtables):
6889 * dumper.c (pdump_dump_wired):
6891 * dumper.c (pdump_load_check):
6892 * dumper.c (pdump_load_finish):
6893 * dumper.c (pdump_file_unmap):
6894 * dumper.c (pdump_file_get):
6895 * dumper.c (pdump_resource_free):
6896 * dumper.c (pdump_resource_get):
6897 * dumper.c (pdump_file_free):
6898 * dumper.c (pdump_file_try):
6899 * dumper.c (pdump_load):
6900 Remove fixed size limits on staticpro(), staticpro_nodump(),
6901 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6902 Remove custom code for dumping lrecord_implementations_table - use
6904 Remove (most of the) custom code for dumping staticpros - dump it
6905 like any other dynarr.
6907 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
6908 * dumper.c: Moved functions from alloc.c.
6909 * alloc.c (dumpstruct): Moved to dumper.c.
6910 * alloc.c (dumpopaque): Likewise.
6911 * alloc.c (pdump_wire): Likewise.
6912 * alloc.c (pdump_wire_list): Likewise.
6914 * lisp.h (Dynarr_sizeof): New.
6915 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
6916 * lisp.h (Dynarr_end): New. Very slightly C++oid.
6917 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
6919 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6920 * lisp.h (dumpopaque): ditto.
6921 * lisp.h (pdump_wire): ditto.
6922 * lisp.h (pdump_wire_list): ditto.
6924 2001-01-09 Martin Buchholz <martin@xemacs.org>
6926 * make-src-depend (PrintPatternDeps):
6927 Use `sort' to make output independent of perl version.
6929 2001-01-08 Martin Buchholz <martin@xemacs.org>
6932 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6933 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6935 2001-01-03 Didier Verna <didier@xemacs.org>
6937 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6938 that `focus_frame' is alive before thinking of calling
6939 `redisplay_redraw_cursor' on it.
6941 2001-01-08 Martin Buchholz <martin@xemacs.org>
6943 * XEmacs 21.2.40 is released.
6945 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
6947 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6949 2001-01-06 Martin Buchholz <martin@xemacs.org>
6951 * alloc.c (dbg_valmask): Make const.
6952 * alloc.c (dbg_typemask): Make const.
6953 * alloc.c (dbg_USE_UNION_TYPE): Make const.
6954 * alloc.c (dbg_valbits): Make const.
6955 * alloc.c (dbg_gctypebits): Make const.
6957 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
6959 * redisplay-x.c (x_bevel_area):
6960 redisplay.h (struct rune):
6961 Typo fixes in comments.
6963 2001-01-05 Andy Piper <andy@xemacs.org>
6965 * glyphs-x.c (x_redisplay_widget): use size changed for offset
6968 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6970 2001-01-05 Martin Buchholz <martin@xemacs.org>
6972 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6974 * mule-ccl.c (stack_idx_of_map_multiple):
6975 Non const global data must not be initialized!
6976 Found by MIYASHITA Hisashi.
6978 2001-01-02 Andy Piper <andy@xemacs.org>
6980 * frame.c (change_frame_size): make sure frame size is always
6983 * glyphs.c (image_instance_layout): minor code reuse.
6985 * window.c (Fcurrent_window_configuration): revert previous
6988 2001-01-02 Martin Buchholz <martin@xemacs.org>
6991 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6993 2000-12-31 Andy Piper <andy@xemacs.org>
6995 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6996 when widget gets unmapped.
6998 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6999 function. Make sure widgets losing focus don't just drop it.
7000 (handle_focus_event_1): record the widget with focus.
7002 2000-12-31 Andy Piper <andy@xemacs.org>
7004 * window.c (allocate_window): use
7005 make_image_instance_cache_hash_table.
7006 (make_dummy_parent): ditto.
7007 (Fset_window_configuration): ditto.
7009 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
7011 * glyphs.c (process_image_string_instantiator): use
7013 (get_image_instantiator_governing_domain): ditto.
7014 (normalize_image_instantiator): ditto.
7015 (instantiate_image_instantiator): ditto.
7016 (make_image_instance_1): ditto.
7017 (image_instantiate): ditto. Key on glyph *and* instantiator type.
7018 (instantiator_eq_equal): new function for use with instance hash
7020 (instantiator_eq_hash): ditto.
7021 (make_image_instance_cache_hash_table): create a suitable hash
7022 table for storing image instances.
7024 * elhash.h (hash_table_weakness): new internal weakness type
7025 HASH_TABLE_KEY_CAR_VALUE_WEAK.
7026 declare new functions.
7028 * elhash.c (finish_marking_weak_hash_tables): introduce yet
7029 another weakness type for glyphs.
7030 (make_standard_lisp_hash_table): new function split out from
7031 make_general_lisp_hash_table.
7032 (make_lisp_hash_table): call make_standard_lisp_hash_table.
7033 (hash_table_instantiate): ditto.
7034 (Fmake_hash_table): ditto.
7036 2000-12-31 Martin Buchholz <martin@xemacs.org>
7038 * XEmacs 21.2.39 is released.
7040 2000-12-29 Andy Piper <andy@xemacs.org>
7042 * menubar.c (menubar_visible_p_changed): signal the frame changed.
7044 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7045 the frame has changed so that we pick up geometry changes such as
7048 2000-12-28 Andy Piper <andy@xemacs.org>
7050 * lastfile.c (my_ebss): make a char array so we can pad the
7051 bss. Fixes cygwin unexec.
7053 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7055 2000-12-26 Andy Piper <andy@xemacs.org>
7057 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7058 comments and try and be more precise about a non-/SIGIO world.
7059 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7062 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7063 we don't normalize to zero width or height.
7065 2000-12-24 Andy Piper <andy@xemacs.org>
7067 * Makefile.in.in (ldflags): add -mwindows when appropriate.
7069 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
7071 * s/sco5.h: SCO 5 has pty support.
7073 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
7075 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7076 input-method-xlib.c contains whole contents of input-method-xfs.c,
7077 so we can use input-method-xlib.c's code for USE_XFONTSET
7079 * input-method-xfs.c: removed.
7081 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
7083 * file-coding.h (enum coding_category_type): reorder enumerators to
7084 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
7085 (now one greater than largest real coding_category_type enumerator).
7086 * file-coding.c (coding_category_symbol, coding_category_by_priority,
7087 coding_category_system, fcd_descriptihon_1, decode_coding_category,
7088 Fcoding_category_list, Fset_coding_priority_list,
7089 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7090 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7092 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7094 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7095 * redisplay-output.c (redisplay_output_window): Clear top of window
7096 when face is changed.
7097 * redisplay-x.c (x_redraw_exposed_window): Call
7098 redisplay_clear_top_of_window.
7099 * redisplay.h: Publish redisplay_clear_top_of_window.
7101 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
7103 * buffer.c (Fkill_buffer): Map over all devices.
7104 * window.c (window_loop): Remove UNSHOW_BUFFER code.
7105 (list_windows): New function.
7106 (list_all_windows): Ditto.
7107 (Freplace_buffer_in_windows): Use them.
7109 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7111 * database.c (berkdb_subtype): Recognize new subtype `queue'.
7112 (Fopen_database): Use `db_create' instead of `db_open'.
7113 (syms_of_database): Initialize Qqueue.
7115 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7117 * buffer.c (common_init_complex_vars_of_buffer): Initialize
7118 buffer_local_face_property.
7119 * buffer.h (struct buffer): New member buffer_local_face_property.
7120 * window.c (Fset_window_buffer): Mark window's face as changed
7121 when buffer has buffer local face.
7122 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7123 * objects.c (color_after_change): Set buffer_local_face_property
7124 when locale of face specifier is buffer.
7125 * objects.c (font_after_change): Ditto.
7126 * objects.c (face_boolean_after_change): Ditto.
7127 * glyphs.c (image_after_change): Ditto.
7129 2000-12-09 Dan Holmsand <dan@eyebee.com>
7131 * nt.c (mswindows_fstat): Report file permissions, volume serial
7132 number, etc. Code adapted from FSF Emacs 20.7.
7134 2000-12-09 Dan Holmsand <dan@eyebee.com>
7136 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7137 of stat when we don't have symbolic links, to make sure
7138 mswindows_stat is called on mswindows.
7140 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
7142 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7144 2000-12-12 Martin Buchholz <martin@xemacs.org>
7146 * doprnt.c (emacs_doprnt_1): More printing fixes.
7147 Make printing of numbers compatible with libc and FSF Emacs.
7148 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7149 Use the system printf to do most of the hard work of formatting,
7150 instead of doprnt_1().
7151 Calculate memory to allocate for format string.
7152 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7153 (doprnt_1): Cleaner code and documentation.
7155 2000-12-01 Jerry James <james@eecs.ukans.edu>
7157 * Makefile.in.in: Use the loop variable to install headers.
7159 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7161 * window.c (Fsplit_window): Don't invalidate face cache.
7163 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7165 * minibuf.c (Fall_completions): Undo the previous change
7166 which removed checking elements start with space.
7168 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7170 * mule-canna.c: Didier suppression.
7172 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
7174 * mule-canna.c: rename static unsigned char buf[] to key_buffer
7175 (warning suppression). Add English comment translations.
7177 2000-12-05 Martin Buchholz <martin@xemacs.org>
7179 * unexelfsgi.c (unexec): Better test for mmap failure.
7181 2000-12-05 Martin Buchholz <martin@xemacs.org>
7183 * XEmacs 21.2.38 is released.
7185 2000-12-05 Martin Buchholz <martin@xemacs.org>
7187 * redisplay.c (bar-cursor): Make a user variable.
7189 * symsinit.h: Add init_postgresql_from_environment.
7191 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
7193 * regex.c: Convert to clean C.
7195 2000-12-05 Dan Holmsand <dan@eyebee.com>
7198 Don't #include sysfile.h. Revert to duplicating PATH_MAX
7200 (sys_readlink): renamed to system_readlink to avoid conflict with
7201 the other sys_readlink.
7203 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
7205 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7207 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
7209 * postgresql.c (init_postgresql_from_environment): new function.
7210 (vars_of_postgresql): Move code initializing Lisp variables out and
7211 into init_postgresql_from_environment.
7212 emacs.c (main_1): Call init_postgresql_from_environment if and only
7213 if running a dumped XEmacs.
7215 2000-08-31 Dan Holmsand <dan@eyebee.com>
7217 * buffer.c: Make find-file-compare-truenames default to true on
7220 * realpath.c (win32_abs_start):
7222 (win32_readlink): New functions.
7223 (xrealpath): Return really real filenames on windows.
7225 * fileio.c (Ffile_truename): Make file-truename work on windows.
7227 2000-11-29 Didier Verna <didier@xemacs.org>
7229 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7230 * faces.c (update_face_cachel_data): use it.
7231 * faces.c (add_face_cachel): use it. Complete background pixmap
7232 frobbing in face cache if `update_face_cachel_data' has not done so.
7234 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
7236 * search.c (string_match_1): Don't set last_thing_searched
7239 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
7241 * buffer.c: Include casetab.h
7242 (common_init_complex_vars_of_buffer): Use new case-table object.
7243 * buffer.h: Include casetab.h
7244 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7245 (DOWNCASE_TABLE_OF): Ditto.
7246 * bufslots.h: Remove char-tables and add case-table.
7247 * casetab.c: Include casetab.h
7248 (CASE_TABLE_P): Removed.
7249 (mark_case_table): New function.
7250 (allocate_case_table): New function.
7251 (Fcase_table_p): Use new case-table.
7252 (case_table_char): New function.
7253 (Fget_case_table): Ditto.
7254 (Fput_case_table): Ditto.
7255 (Fput_case_table_pair): Ditto.
7256 (Fcopy_case_table): Ditto.
7257 (Fcurrent_case_table): Return case-table.
7258 (Fstandard_case_table): Return case-table.
7259 (Fset_case_table): Fix doc-string.
7260 (set_case_table): Use case-table
7261 (syms_of_casetab): DEFSUBR new functions.
7262 (complex_vars_of_casetab): Set up standard case-table.
7263 * casetab.h: New file.
7264 * editfns.c: Include casetab.h
7265 (Fcompare_buffer_substrings): Use case-table.
7266 * inline.c: Include casetab.h
7267 * lisp.h: Remove bogus extern.
7268 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7269 * search.c: Include casetab.h
7270 (TRANSLATE_ASCII): Removed.
7271 (TRANSLATE): Unconditionally translate character.
7272 (looking_at_1): Use case-table.
7273 (string_match_1): Ditto.
7274 (fast_string_match): Ditto.
7275 (search_command): Ditto.
7276 (search_buffer): Separate boyer_moore. Check whether
7277 boyer_moore is possible.
7278 (simple_search): New function.
7279 (boyer_moore): Separated from search_buffer. Translate char.
7281 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
7283 * regex.c (RE_TR_ASCII): Removed.
7284 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7285 (PATFETCH): Call PATFETCH_RAW.
7286 (PATFETCH_RAW): Fetch Emchar.
7287 (PATUNFETCH): Decrement charptr.
7288 (GET_BUFFER_SPACE): Rename b to buf_end.
7290 (BUF_PUSH_2): Ditto.
7291 (BUF_PUSH_3): Ditto.
7292 (EXTEND_BUFFER): Ditto.
7293 (SET_LIST_BIT): Ditto.
7294 (regex_compile): Ditto. Translate non ASCII char.
7295 (compile_range): Ditto.
7296 (re_search_2): Ditto.
7297 (re_match_2_internal): Compare Emchar.
7298 (bcmp_translate): Ditto.
7300 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
7302 * lisp.h (basic char/int typedefs): comment improvement.
7304 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
7306 * emacs.c (main_1): unconditional pdump unstomping; don't save and
7307 unstomp inhibit_site_lisp. Improve comments.
7309 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
7311 * mule-charset.c (Fcharset_property): improve type checking, comments.
7313 2000-11-28 Andy Piper <andy@xemacs.org>
7315 * redisplay-output.c (redisplay_output_subwindow): make sure we do
7316 clipped display for windows in the gutter also.
7317 (redisplay_display_boxes_in_window_p): change semantics of return
7318 codes to be more intuitive.
7320 * gutter.h: declare display_boxes_in_gutter_p.
7322 * gutter.c (display_boxes_in_gutter_p): new function for
7325 2000-11-22 Andy Piper <andy@xemacs.org>
7327 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7330 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
7332 * callproc.c (Fold_call_process_internal):
7333 * gpm.c (Freceive_gpm_event):
7334 (tty_get_foreign_selection): Might be just warning supression.
7335 * fileio.c (Fwrite_region_internal):
7336 (Fset_visited_file_modtime):
7337 * keymap.c (event_matches_key_specifier_p):
7338 Initialize GCPROed variable.
7340 * menubar-x.c (command_builder_find_menu_accelerator):
7341 Initialize before use.
7343 2000-11-23 Andy Piper <andy@xemacs.org>
7345 * unexcw.c (unexec): make the resulting executable executable.
7347 2000-11-21 Martin Buchholz <martin@xemacs.org>
7349 * doc.c (get_doc_string):
7350 Use size_t, not int, for result of XSTRING_LENGTH.
7352 * cmds.c (Fdelete_char):
7353 * cmds.c (Fpoint_at_eol):
7354 * cmds.c (Fself_insert_command):
7355 Use EMACS_INT, not int, for result of XINT.
7356 Someday, someone will want to insert more than 2**31 identical characters.
7358 * cmds.c (Fdelete_char):
7359 * cmds.c (Fdelete_backward_char):
7360 * syntax.c (Fforward_word):
7361 * syntax.c (Fforward_comment):
7362 Make COUNT argument optional, for consistency with forward-char et al.
7364 2000-11-22 Martin Buchholz <martin@xemacs.org>
7367 * print.c (long_to_string):
7368 Return a useful value: the pointer at end of data written.
7371 Use `static const char * const' for constant strings.
7372 (union printf_arg): Delete `i', `ui' members.
7375 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7376 Do all printf-ing via the `l' specifier.
7377 Use EMACS_INT instead of int.
7380 2000-11-20 Didier Verna <didier@xemacs.org>
7382 * faces.c (update_face_cachel_data): don't frob the background
7383 pixmap when the window is being created. The face is needed but
7386 2000-11-20 Andy Piper <andy@xemacs.org>
7388 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7389 messing with a debug environment.
7391 2000-11-20 Martin Buchholz <martin@xemacs.org>
7393 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7395 2000-11-20 Martin Buchholz <martin@xemacs.org>
7397 * casetab.c (Fcase_table_p): Fix compile error and crash.
7399 2000-11-18 Philip Aston <philipa@mail.com>
7401 * s/cygwin32.h: Cygwin has SVR4-like pty support.
7403 2000-11-18 Martin Buchholz <martin@xemacs.org>
7405 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
7406 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7408 2000-11-17 Martin Buchholz <martin@xemacs.org>
7410 * config.h.in: Define HAVE_ELF_H if elf.h exists.
7411 * unexelf.c: Use HAVE_ELF_H.
7412 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7413 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7414 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7415 Greg Harrington <greg_harrington@hotmail.com> provided a machine
7417 So this is an unexelfsgi.c from a different line of development.
7419 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7421 * regex.c (RE_TR_ASCII): New function.
7422 (RE_TRANSLATE): Call it.
7424 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
7426 * buffer.h (TRT_TABLE_OF): Remove assert.
7427 (IN_TRT_TABLE_DOMAIN): Removed.
7429 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
7431 * free-hook.c (log_gcpro):
7432 (show_gcprohist): Add support for GCPRO5.
7434 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
7436 * emacs.c (main_1): Improve -sd error message when --pdump=no.
7438 2000-11-16 Olivier Galibert <galibert@xemacs.org>
7440 * symeval.h: Declare flush_all_buffer_local_cache.
7442 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7443 (flush_buffer_local_cache): Added.
7444 (flush_all_buffer_local_cache): Added.
7446 * lrecord.h: Remove unused XD_LO_RESET_NIL.
7448 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7449 (pdump_dump_data): Ditto.
7450 (pdump_reloc_one): Ditto.
7451 (pdump): Remove unused pdump_qnil. Flush buffer local caches
7455 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7457 * buffer.c: Remove if 0'ed entry.
7458 * buffer.h: Rewrite TRT to use char-table.
7459 * bufslots.h: Remove mirror tables.
7460 * casetab.c: Remove mirror tables.
7461 (CASE_TABLE_P): New macro.
7462 (Fcase_table_p): Element of a case table is string or char-table.
7463 (make_mirror_trt_table): Removed.
7464 (set_case_table): Setup char-table from strings for backward
7466 * dired.c (Fdirectory_files):
7467 * dired-msw.c: (mswindows_get_files):
7468 * lisp.h: Change prototype of re_pattern_buffer.
7469 * regex.c: (RE_TRANSLATE): New macro.
7470 (TRANSLATE_P): Ditto.
7471 Change translate to type RE_TRANSLATE_TYPE.
7472 * regex.h: Define RE_TRANSLATE_TYPE
7473 * search.c (TRANSLATE): New macro.
7474 (TRANSLATE_ASCII): New macro.
7475 Translate table is changed to Lisp_Object.
7476 (signal_failure): Inhibit return.
7478 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
7485 Do UNGCPRO before return.
7487 2000-11-14 Martin Buchholz <martin@xemacs.org>
7489 * XEmacs 21.2.37 is released.
7491 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
7493 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7494 Add comments about discarded return value.
7496 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7499 * event-stream.c: Fix comments. Remove some #if 0'ed part.
7501 2000-10-27 Andy Piper <andy@xemacs.org>
7503 * gutter.c (Fset_default_gutter_position): default left and right
7505 (calculate_gutter_size): calculate resonable heuristic for left
7506 and right gutter sizes.
7507 (specifier_vars_of_gutter): change left and right gutter sizes to
7509 (calculate_gutter_size_from_display_lines): new function.
7510 (output_gutter): check for resizing on left and right gutters.
7511 (clear_gutter): don't special case top and left gutters.
7512 (specifier_vars_of_gutter): use new signature for
7513 set_specifier_caching.
7515 * glyphs-x.c (x_redisplay_widget): spelling fix.
7516 * glyphs.c (specifier_vars_of_glyphs):
7517 * menubar.c (specifier_vars_of_menubar):
7518 * redisplay.c (specifier_vars_of_redisplay):
7519 * toolbar.c (specifier_vars_of_toolbar):
7520 * window.c (specifier_vars_of_window):
7521 * scrollbar.c (specifier_vars_of_scrollbar):
7522 (complex_vars_of_scrollbar): use new signature for
7523 set_specifier_caching.
7525 * specifier.c (set_specifier_caching): include recompute flag.
7526 (recompute_one_cached_specifier_in_window): always recompute if
7528 (recompute_one_cached_specifier_in_frame): ditto.
7530 * specifier.h (struct specifier_caching): add recompute flag.
7532 2000-10-24 Andy Piper <andy@xemacs.org>
7534 * unexcw.c (copy_executable_and_dump_data_section): add new
7535 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7538 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7540 * console-x.h (x_device): New member modifier_release_time.
7541 * event-Xt.c (x_handle_sticky_modifiers):
7542 Bound interval modifier keys are sticky.
7543 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7544 * events.h: extern it.
7546 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7548 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7550 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
7552 * event-stream.c (execute_command_event): Preserve current_events
7553 and the like when event is misc-user-event.
7554 Inhibit quit during the call to maybe_echo_keys.
7556 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
7558 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7559 symlink when buffer is killed.
7560 (inhibit_clash_detection): New variable.
7562 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7564 * console.c (Fset_input_method): Trigger redisplay on tty.
7566 2000-11-07 Martin Buchholz <martin@xemacs.org>
7568 * process.c (Fprocess_status): Revert to previous behavior:
7569 (process-status "nosuchprocess") ==> nil
7571 2000-11-06 Martin Buchholz <martin@xemacs.org>
7573 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7574 Work around another GCC 2.95.2 optimizer bug.
7576 2000-11-02 Martin Buchholz <martin@xemacs.org>
7578 * process.c (Fget_process): Use LIST_LOOP_2.
7579 (kill_buffer_processes): Use LIST_LOOP_2.
7581 * minibuf.c (Fall_completions):
7582 Delete old non-functional code for FSF fourth argument.
7584 * frame.c (frame_matches_frame_spec):
7585 Renamed from `frame_matches_frametype'. Update all callers.
7586 (device_matches_device_spec):
7587 Renamed from 'device_matches_console_spec'. Update all callers.
7589 * doc.c (Fsubstitute_command_keys):
7590 Remove buffer overflow crash. Small code cleanups.
7592 * casetab.c (check_case_table): Simpler code.
7594 * window.c (Freplace_buffer_in_windows):
7595 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7596 (and similar implementation) as Fdelete_windows_on.
7599 * alloc.c (Fmake_list):
7600 * alloc.c (make_vector):
7601 * alloc.c (Fmake_vector):
7602 * alloc.c (make_bit_vector):
7603 * alloc.c (Fmake_bit_vector):
7604 * alloc.c (Fbit_vector):
7605 * alloc.c (Fmake_string):
7606 * alloc.c (Fpurecopy):
7607 * alloc.c (Fmemory_limit):
7609 * buffer.c (Fget_buffer):
7610 * buffer.c (Fkill_buffer):
7611 * buffer.c (complex_vars_of_buffer):
7612 * bytecode.c (Fcompiled_function_stack_depth):
7613 * callint.c (Fprefix_numeric_value):
7615 * event-stream.c (Fread_key_sequence):
7617 * casetab.c (Fcase_table_p):
7618 * casetab.c (check_case_table):
7619 * casetab.c (Fset_case_table):
7620 * casetab.c (Fset_standard_case_table):
7622 * chartab.c (Fchar_table_type):
7623 * chartab.c (Freset_char_table):
7624 * chartab.c (Fget_char_table):
7625 * chartab.c (Fget_range_char_table):
7626 * chartab.c (Fput_char_table):
7627 * chartab.c (Fmap_char_table):
7628 * chartab.c (Fcategory_table_p):
7629 * chartab.c (Fcheck_category_at):
7630 * chartab.c (Fchar_in_category_p):
7631 * chartab.c (Fcategory_table):
7632 * chartab.c (Fcopy_category_table):
7633 * chartab.c (Fset_category_table):
7634 * chartab.c (Fcategory_designator_p):
7635 * chartab.c (Fcategory_table_value_p):
7636 * cmds.c (Fdelete_char):
7637 * cmds.c (Fdelete_backward_char):
7638 * cmds.c (Fself_insert_command):
7639 * cmds.c (Fself_insert_internal):
7640 * console.c (Fvalid_console_type_p):
7641 * console.c (Fcdfw_console):
7642 * console.c (Fconsole_type):
7643 * console.c (Fconsole_name):
7644 * console.c (Fconsole_device_list):
7645 * console.c (Fconsole_on_window_system_p):
7649 * data.c (Fsubr_interactive):
7650 * data.c (Fchar_to_int):
7651 * data.c (Fint_to_char):
7654 * data.c (Fnumber_to_string):
7655 * data.c (Fstring_to_number):
7657 * database.c (mark_database):
7658 * database.c (finalize_database):
7659 * database.c (Fdatabase_live_p):
7660 * database.c (Fdatabasep):
7661 * device-x.c (Fx_get_resource):
7662 * device.c (Fdfw_device):
7664 * dired.c (Ffile_name_completion):
7665 * dired.c (Ffile_name_all_completions):
7666 * dired.c (Fuser_name_completion):
7667 * dired.c (Fuser_name_completion_1):
7668 * dired.c (Fuser_name_all_completions):
7669 * doc.c (Fdocumentation):
7670 * doc.c (Fdocumentation_property):
7671 * doc.c (Fsubstitute_command_keys):
7673 * editfns.c (Fchar_to_string):
7674 * editfns.c (Fstring_to_char):
7675 * editfns.c (Ftemp_directory):
7676 * editfns.c (Finsert_char):
7677 * editfns.c (Fbuffer_substring_no_properties):
7678 * editfns.c (Fnarrow_to_region):
7679 * editfns.c (Fchar_equal):
7680 * editfns.c (Fchar_Equal):
7681 * editfns.c (Ftranspose_regions):
7682 * emacs.c (Fdump_emacs):
7684 * eval.c (Fcommand_execute):
7685 * eval.c (Fautoload):
7686 * eval.c (Fbacktrace):
7687 * eval.c (Fbacktrace_frame):
7689 * events.c (Fcopy_event):
7690 * events.c (Fcharacter_to_event):
7691 * events.c (Fevent_button):
7692 * events.c (Fevent_process):
7694 * extents.c (Fnext_extent_change):
7695 * extents.c (Fextent_property):
7697 * faces.c (Fmake_face):
7699 * file-coding.c (Fencode_shift_jis_char):
7700 * file-coding.c (Fencode_big5_char):
7701 * fileio.c (Ffile_name_directory):
7702 * fileio.c (Ffile_name_nondirectory):
7703 * fileio.c (Ffile_name_as_directory):
7704 * fileio.c (Fdirectory_file_name):
7705 * fileio.c (Ffile_truename):
7706 * fileio.c (Fsubstitute_in_file_name):
7707 * fileio.c (Ffile_modes):
7708 * fileio.c (Fset_file_modes):
7709 * fileio.c (Fset_default_file_modes):
7710 * fileio.c (Fverify_visited_file_modtime):
7711 * floatfns.c (Facos):
7712 * floatfns.c (Fasin):
7713 * floatfns.c (Fatan):
7714 * floatfns.c (Fcos):
7715 * floatfns.c (Fsin):
7716 * floatfns.c (Ftan):
7717 * floatfns.c (Fbessel_j0):
7718 * floatfns.c (Fbessel_j1):
7719 * floatfns.c (Fbessel_jn):
7720 * floatfns.c (Fbessel_y0):
7721 * floatfns.c (Fbessel_y1):
7722 * floatfns.c (Fbessel_yn):
7723 * floatfns.c (Ferf):
7724 * floatfns.c (Ferfc):
7725 * floatfns.c (Flog_gamma):
7726 * floatfns.c (Fexp):
7727 * floatfns.c (Fexpt):
7728 * floatfns.c (Flog):
7729 * floatfns.c (Flog10):
7730 * floatfns.c (Fsqrt):
7731 * floatfns.c (Fcube_root):
7732 * floatfns.c (Facosh):
7733 * floatfns.c (Fasinh):
7734 * floatfns.c (Fatanh):
7735 * floatfns.c (Fcosh):
7736 * floatfns.c (Fsinh):
7737 * floatfns.c (Ftanh):
7738 * floatfns.c (Fabs):
7739 * floatfns.c (Ffloat):
7740 * floatfns.c (Flogb):
7741 * floatfns.c (Fceiling):
7742 * floatfns.c (Ffloor):
7743 * floatfns.c (Fround):
7744 * floatfns.c (Ftruncate):
7745 * floatfns.c (Ffceiling):
7746 * floatfns.c (Fffloor):
7747 * floatfns.c (Ffround):
7748 * floatfns.c (Fftruncate):
7749 * fns.c (Fstring_equal):
7750 * fns.c (Fstring_lessp):
7755 * fns.c (Fsubstring):
7757 * fns.c (Fold_assoc):
7758 * fns.c (assoc_no_quit):
7760 * fns.c (Fold_assq):
7761 * fns.c (assq_no_quit):
7763 * fns.c (Fold_rassoc):
7765 * fns.c (Fold_rassq):
7766 * fns.c (rassq_no_quit):
7767 * fns.c (Fremassoc):
7768 * fns.c (remassoc_no_quit):
7770 * fns.c (remassq_no_quit):
7771 * fns.c (Fremrassoc):
7772 * fns.c (Fremrassq):
7773 * fns.c (remrassq_no_quit):
7775 * fns.c (Fplist_get):
7776 * fns.c (Fplist_put):
7777 * fns.c (Fplist_remprop):
7778 * fns.c (Fplist_member):
7779 * fns.c (Flax_plist_get):
7780 * fns.c (Flax_plist_put):
7781 * fns.c (Flax_plist_remprop):
7782 * fns.c (Flax_plist_member):
7784 * fns.c (Fold_equal):
7786 * fns.c (Fbase64_encode_region):
7787 * fns.c (Fbase64_encode_string):
7788 * fns.c (Fbase64_decode_region):
7790 * frame.c (frame_matches_frame_spec):
7791 * frame.c (device_matches_device_spec):
7792 * frame.c (next_frame):
7793 * frame.c (previous_frame):
7794 * frame.c (Fnext_frame):
7795 * frame.c (Fprevious_frame):
7796 * frame.c (Fframe_property):
7797 * frame.c (Fset_frame_height):
7798 * frame.c (Fset_frame_size):
7802 * glyphs.c (decode_error_behavior_flag):
7803 * glyphs.c (Fmake_image_instance):
7804 * indent.c (Findent_to):
7805 * intl.c (Fignore_defer_gettext):
7806 * keymap.c (Fkeymapp):
7807 * keymap.c (Flookup_key):
7809 * lread.c (Fload_internal):
7810 * lread.c (Feval_buffer):
7811 * lread.c (Feval_region):
7812 * macros.c (Fexecute_kbd_macro):
7813 * marker.c (set_marker_internal):
7814 * marker.c (Fset_marker):
7815 * marker.c (set_marker_restricted):
7816 * marker.c (Fcopy_marker):
7817 * marker.c (noseeum_copy_marker):
7819 * menubar.c (Fpopup_menu):
7821 * mule-charset.c (Fcharset_name):
7822 * mule-charset.c (Fchar_charset):
7823 * mule-charset.c (Fchar_octet):
7824 * mule-charset.c (Fsplit_char):
7825 * mule-wnnfns.c (Fwnn_open):
7826 * mule-wnnfns.c (Fwnn_dict_comment):
7827 * mule-wnnfns.c (Fwnn_quit_henkan):
7828 * mule-wnnfns.c (Fwnn_word_toroku):
7829 * mule-wnnfns.c (Fwnn_word_sakujo):
7830 * mule-wnnfns.c (Fwnn_word_use):
7831 * mule-wnnfns.c (Fwnn_hindo_set):
7833 * objects.c (Fmake_color_instance):
7834 * objects.c (Fmake_font_instance):
7835 * print.c (Fwrite_char):
7837 * process.c (mark_process):
7838 * process.c (print_process):
7839 * process.c (get_process_from_usid):
7840 * process.c (Fprocessp):
7841 * process.c (Fprocess_live_p):
7842 * process.c (Fget_process):
7843 * process.c (Fget_buffer_process):
7844 * process.c (get_process):
7845 * process.c (Fprocess_id):
7846 * process.c (Fprocess_name):
7847 * process.c (Fprocess_command):
7848 * process.c (init_process_io_handles):
7849 * process.c (start_process_unwind):
7850 * process.c (Fstart_process_internal):
7851 * process.c (Fopen_multicast_group_internal):
7852 * process.c (Fset_process_window_size):
7853 * process.c (read_process_output):
7854 * process.c (send_process):
7855 * process.c (Fprocess_tty_name):
7856 * process.c (Fset_process_buffer):
7857 * process.c (Fprocess_buffer):
7858 * process.c (Fprocess_mark):
7859 * process.c (set_process_filter):
7860 * process.c (Fset_process_filter):
7861 * process.c (Fprocess_filter):
7862 * process.c (Fprocess_send_region):
7863 * process.c (Fprocess_send_string):
7864 * process.c (exec_sentinel):
7865 * process.c (Fset_process_sentinel):
7866 * process.c (Fprocess_sentinel):
7867 * process.c (status_notify):
7868 * process.c (Fprocess_status):
7869 * process.c (Fprocess_exit_status):
7870 * process.c (process_send_signal):
7871 * process.c (Fprocess_send_eof):
7872 * process.c (deactivate_process):
7873 * process.c (remove_process):
7874 * process.c (Fdelete_process):
7875 * process.c (kill_buffer_processes):
7876 * process.c (Fprocess_kill_without_query):
7877 * process.c (Fprocess_kill_without_query_p):
7879 * rangetab.c (Fget_range_table):
7880 * rangetab.c (Fput_range_table):
7881 * rangetab.c (Fremove_range_table):
7882 * rangetab.c (Fclear_range_table):
7884 * search.c (Fskip_chars_forward):
7885 * search.c (Fskip_chars_backward):
7886 * search.c (Fskip_syntax_forward):
7887 * search.c (Fskip_syntax_backward):
7888 * search.c (search_command):
7889 * search.c (Freplace_match):
7890 * search.c (Fregexp_quote):
7891 * select.c (Fown_selection_internal):
7892 * select.c (Fselection_owner_p):
7893 * select.c (Fselection_exists_p):
7894 * select.c (Fget_selection_internal):
7897 * symbols.c (Fintern):
7898 * symbols.c (Fintern_soft):
7899 * symbols.c (Funintern):
7900 * symbols.c (Fapropos_internal):
7901 * symbols.c (Fset_default):
7903 * syntax.c (Fsyntax_table_p):
7904 * syntax.c (Fcopy_syntax_table):
7905 * syntax.c (Fset_syntax_table):
7906 * syntax.c (Fchar_syntax):
7907 * syntax.c (syntax_match):
7908 * syntax.c (Fmatching_paren):
7909 * syntax.c (Fforward_word):
7910 * syntax.c (scan_lists):
7911 * syntax.c (Fscan_lists):
7912 * syntax.c (Fscan_sexps):
7913 * syntax.c (Fparse_partial_sexp):
7914 * toolbar.c (Fcheck_toolbar_button_syntax):
7917 * window.c (Fwindowp):
7918 * window.c (Fwindow_live_p):
7919 * window.c (Fwindow_point):
7920 * window.c (Fdelete_window):
7921 * window.c (Fnext_window):
7922 * window.c (Fprevious_window):
7923 * window.c (Fother_window):
7924 * window.c (window_loop):
7925 * window.c (Fget_lru_window):
7926 * window.c (Fsplit_window):
7927 * window.c (Fenlarge_window):
7928 * window.c (Fenlarge_window_pixels):
7929 * window.c (Fshrink_window):
7930 * window.c (Fshrink_window_pixels):
7931 * window.c (change_window_height):
7932 * window.c (Fwindow_configuration_p):
7933 * window.c (Fcurrent_window_configuration):
7935 * casefiddle.c (casify_object):
7936 * casefiddle.c (Fupcase):
7937 * casefiddle.c (Fdowncase):
7938 * casefiddle.c (Fcapitalize):
7939 * casefiddle.c (Fupcase_initials):
7940 * casefiddle.c (casify_region_internal):
7941 * casefiddle.c (casify_region):
7942 * casefiddle.c (Fupcase_region):
7943 * casefiddle.c (Fdowncase_region):
7944 * casefiddle.c (Fcapitalize_region):
7945 * casefiddle.c (Fupcase_initials_region):
7946 * casefiddle.c (Fupcase_word):
7947 * casefiddle.c (Fdowncase_word):
7948 * casefiddle.c (Fcapitalize_word):
7949 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
7950 Replace 0 with '\0' when working with bytes.
7951 Replace initial "(" with "\(" in docstrings.
7953 2000-11-01 Martin Buchholz <martin@xemacs.org>
7955 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7957 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7959 2000-10-31 Martin Buchholz <martin@xemacs.org>
7961 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
7963 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7965 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7968 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
7970 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7971 (inhibit_auto_save_session): New variable.
7972 (vars_of_fileio): Declare and initialize them.
7973 * fileio.c (Fdo_auto_save): Don't create session file if
7974 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7976 2000-10-31 Martin Buchholz <martin@xemacs.org>
7978 * sgiplay.c (play_internal): C++ compilability.
7979 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7980 * callproc.c (Fold_call_process_internal):
7981 Remove unused vars `env', `first'.
7982 * scrollbar.c (update_scrollbar_instance):
7983 #### unused var `current_window'.
7984 * redisplay-tty.c: Put currently unused vars insert_mode_on,
7985 etc. within #ifdef NOT_YET.
7986 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7987 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7988 * specifier.c (specifier_instance):
7989 #### unused var `tag'.
7990 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7992 2000-10-27 Martin Buchholz <martin@xemacs.org>
7995 * fns.c (list_sort):
7996 * fns.c (Ffillarray):
7997 * fns.c (bytecode_nconc2):
8000 * fns.c (Fmapconcat):
8001 Be pedantically 64-bit correct. For the time when someone will
8002 want to have a list with length > 2**32.
8004 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8005 Work around MIPSpro compiler bug.
8007 * process-unix.c (unix_kill_child_process): Add snarky comment.
8008 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
8010 * config.h.in: Oops, _getpt ==> _getpty
8012 2000-10-26 Martin Buchholz <martin@xemacs.org>
8016 Use void*, not char*, as return type of alloca().
8018 * alloc.c (free_marker): Side effect inside assert expression!
8020 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
8022 * mule-charset.c (Fset_charset_ccl_program): To check
8023 if the given ccl program is valid, use setup_ccl_program()
8024 instead of CHECK_VECTOR().
8025 (Fmake_charset): Likewise.
8027 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
8029 * faces.c (get_extent_fragment_face_cache_index):
8030 Fix cachel.merged_faces memory leak.
8032 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
8034 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8035 Reset MSB of octets obtained by DECODE_SJIS
8036 because of the incompatibility with Emacs.
8037 (ccl_driver)<CCL_ENCODE_SJIS>:
8038 Set MSB of octets before passing them to
8039 ENCODE_SJIS because of the incompatibility
8042 2000-10-18 Daiki Ueno <ueno@unixuser.org>
8044 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8045 (DECLARE_LRECORD): Undo the last change.
8046 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8048 2000-10-17 Daiki Ueno <ueno@unixuser.org>
8050 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8051 the implementation to lrecord_implementations_table.
8053 2000-10-14 Daiki Ueno <ueno@unixuser.org>
8055 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8056 initial value of `lrecord_type_##c_name' and
8057 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8058 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8059 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8060 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8061 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8063 2000-10-17 Martin Buchholz <martin@xemacs.org>
8065 * miscplay.c (sndcnv8S_2mono):
8066 (sndcnv2monounsigned):
8067 (sndcnvULaw_2linear):
8069 Remove implementation-defined behavior.
8071 2000-10-12 Martin Buchholz <martin@xemacs.org>
8073 * input-method-xlib.c: Warning suppression.
8075 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
8077 * mule-ccl.c: Sync up with Emacs 21.0.90.
8078 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8080 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8082 (ccl_driver[WriteMultibyteChar2]): Bug fix.
8083 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8084 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8085 leading char belongs to official 2-dimensional charset.
8086 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8087 write the given character as is. Otherwise,
8088 if it is a multibyte char, convert it by
8089 non_ascii_set_charptr_emchar, then write it.
8090 (CCL_WRITE_STRING): Likewise.
8091 (ccl_get_compiled_code): New function.
8092 (setup_ccl_program): When ccl_prog is invalid,
8094 (Fregister_code_conversion_map): New function.
8095 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8097 * mule-ccl.h: Sync up with Emacs 21.0.90.
8098 (Fregister_ccl_program): export it.
8100 * redisplay-msw.c (separate_textual_runs):
8101 If ccl program is not valid, don't do ccl conversion.
8103 * redisplay-x.c (separate_textual_runs): Ditto.
8105 * file-coding.c (Fmake_coding_system):
8106 When type is ccl and value is vector, register it
8107 with a proper symbol. And checks whether the
8108 given ccl program is valid.
8109 (mule_decode): When calling ccl_driver, if src indicates
8110 NULL pointer, set an empty string instead.
8111 (mule_encode): Likewise.
8113 2000-10-11 Martin Buchholz <martin@xemacs.org>
8115 The following large batch of changes gets us back to a state of
8116 C++ compilability. Extbyte is now a char, which means that
8117 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8119 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8121 * sound.c (Fplay_sound): Type correctness.
8123 * select-x.c (hack_motif_clipboard_selection): Type correctness.
8124 (x_get_window_property): Type correctness.
8125 (receive_incremental_selection): unsigned char ==> Extbyte
8126 (selection_data_to_lisp_data): unsigned char ==> Extbyte
8127 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8128 (Fx_store_cutbuffer_internal): Type correctness.
8130 * process-unix.c (try_to_initialize_subtty): Type correctness.
8132 * objects-x.c (x_print_color_instance): Type correctness.
8133 (x_print_font_instance): Type correctness.
8134 (x_list_fonts): SExtbyte ==> Extbyte.
8135 (valid_x_font_name_p): SExtbyte ==> Extbyte.
8136 (x_find_charset_font): SExtbyte ==> Extbyte.
8137 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
8138 (truename_via_XListFonts): SExtbyte ==> Extbyte.
8139 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8142 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8143 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8144 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8145 (BYTE_C0_P): Use bit ops for char-signedness safety.
8146 (BYTE_C1_P): Use bit ops for char-signedness safety.
8147 (CHARSET_BY_LEADING_BYTE):
8148 (CHARSET_BY_ATTRIBUTES):
8149 Always use inline function.
8150 Use type_checking_assert.
8153 * mule-charset.c (non_ascii_charptr_copy_char):
8154 Modify to work with both ASCII and non-ASCII characters.
8155 Improve docs and variable names.
8156 Replace over-clever fall-through switch with a simple loop.
8157 (Lstream_get_emchar_1):
8158 Replace over-clever fall-through switch with a simple loop.
8160 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8161 Warning suppression.
8163 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8164 the return value of Lstream_getc, which could be EOF as well.
8166 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8168 * lisp.h: Make Extbyte a char, not unsigned char, so that external
8169 APIs can be used on Extbytes without casts. Risky!
8173 * input-method-xlib.c (XIM_init_device):
8174 Use Xlib.h instead of IntrinsicP.h.
8175 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8176 which will break in X11R7.
8177 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8178 to call XRegisterIMInstantiateCallback with correct types.
8180 * gui-x.c (button_item_to_widget_value): Type correctness.
8182 * glyphs.c (bitmap_to_lisp_data): Type correctness.
8184 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8185 (xbm_instantiate_1): Type correctness.
8186 (BUILD_GLYPH_INST): Type correctness.
8188 * fileio.c (Fsubstitute_in_file_name): Type correctness.
8191 (decode_coding_sjis):
8192 (decode_coding_big5):
8193 (decode_coding_ucs4):
8194 (decode_coding_utf8):
8195 (decode_coding_iso2022):
8196 (decode_coding_no_conversion):
8197 Make all decoding functions take an Extbyte * arg.
8198 (encode_coding_sjis):
8199 (encode_coding_big5):
8200 (encode_coding_ucs4):
8201 (encode_coding_utf8):
8202 (encode_coding_iso2022):
8203 (encode_coding_no_conversion):
8204 Make all encoding functions take a Bufbyte * arg.
8205 Use size_t instead of unsigned int for memory sizes.
8206 Only cast to unsigned char whenever dereferencing Extbyte *.
8208 * doc.c (unparesseuxify_doc_string): Type correctness.
8210 * console-x.c (split_up_display_spec):
8211 Rewrite without using details of internal string representation.
8212 (x_semi_canonicalize_device_connection): Type correctness.
8215 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8216 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8217 (HAVE_XFREE386): Removed.
8219 * buffer.h (DEC_CHARPTR): `const' correctness.
8220 (bufbyte_strcmp): New.
8221 (bufbyte_memcmp): New.
8223 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8225 * buffer.h (XCHAR_OR_CHAR_INT):
8226 Always use inline function.
8227 Remove redundant type checking assert() - XINT will abort quite nicely.
8229 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
8231 * search.c (Freplace_match): Set newtext to an empty string.
8233 2000-10-10 Martin Buchholz <martin@xemacs.org>
8235 * s/decosf1-3.h: Remove #include of stropts.h
8236 * s/ptx.h: Remove #include of stropts.h
8237 * s/usg5-4.h: Remove #include of stropts.h
8240 Use stropts.h, not sys/stropts.h.
8241 Use strtio.h, not sys/strtio.h.
8243 2000-10-04 Martin Buchholz <martin@xemacs.org>
8245 * XEmacs 21.2.36 is released.
8247 2000-09-21 Andy Piper <andy@xemacs.org>
8249 * glyphs-x.c (x_redisplay_widget): make sure non-structural
8250 changes still involve copying the widget tree.
8251 (update_widget_face): make sure a change is register in the widget
8252 tree. Call update_tab_widget_face appropriately.
8253 (update_tab_widget_face): ditto.
8254 (x_tab_control_redisplay): make sure non-structural changes still
8255 involve copying the widget tree.
8257 2000-08-31 Daiki Ueno <ueno@unixuser.org>
8259 * lread.c (locate_file): Check the path element is non-nil.
8261 2000-10-02 Martin Buchholz <martin@xemacs.org>
8263 * lisp.h: Warning suppression for SCO compilers.
8265 * redisplay-tty.c (reset_tty_modes): Fix crash.
8266 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8268 2000-09-27 Martin Buchholz <martin@xemacs.org>
8270 Big signal/process handling overhaul. Bugs fixed:
8271 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8272 M-x comint-kill-subjob should work for both values nil and t of
8273 process-connection-type. It was broken on most platforms.
8274 Testing on Irix and Cygwin still needed. Other plaforms tested.
8275 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
8276 * process-unix.c: Signal/Process handling overhaul.
8277 (pty_name): make 64 bytes, as `expect' does, for paranoia.
8278 (allocate_pty): Use all available modern methods of allocating
8279 ptys, falling back to old style BSD allocation as a last resort.
8280 Use allegedly more secure Unix98 pty allocation by default.
8281 (allocate_pty_the_old_fashioned_way): New. the last resort.
8282 (unix_create_process): Push ptem, ldterm, ttcompat where
8283 available. Autoconfiscate.
8284 (try_to_initialize_subtty): New.
8285 (unix_kill_child_process): Proper signal handling for ptys on most
8286 platforms, using special knowledge of AIX, BSD, etc...
8287 (unix_create_process): Always disconnect_controlling_terminal() for
8288 subprocesses, whether using ptys or not.
8289 * process.h: Remove old getpt-dependent PTY code.
8290 * process.c (Fprocess_send_signal): New, obvious generic function.
8291 (decode_signal): New.
8292 (Finterrupt_process):
8296 (Fcontinue_process):
8297 (Fsignal_process): Use decode_signal.
8298 (process_send_signal):
8299 Many docstring corrections.
8300 Allow any signal to be sent to a process object.
8301 * config.h.in: Add symbols for big signal/process overhaul.
8302 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8303 * sysproc.h: Include process-related headers, where available:
8304 sys/stropts.h sys/strtio.h pty.h libutil.h
8312 Remove old S&M pty stuff.
8313 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8314 * systty.h: Simplify cpp hackery, improve comments.
8315 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8317 * editfns.c (Fformat_time_string):
8318 Be a little more paranoid with the return value of ctime.
8320 * fileio.c (check_executable):
8322 Use symbolic constants X_OK, W_OK.
8324 * console-x.c (split_up_display_spec): Fix a warning.
8326 2000-10-02 Martin Buchholz <martin@xemacs.org>
8328 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8329 * ntproc.c (sys_spawnve): make_string ==> build_string
8330 Small clarity improvements.
8332 2000-09-30 Martin Buchholz <martin@xemacs.org>
8334 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8336 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8338 * config.h.in (HAVE_STRCASECMP): Remove.
8340 2000-09-29 Martin Buchholz <martin@xemacs.org>
8342 * redisplay-output.c (redisplay_output_pixmap):
8343 Cleaner and possibly more 64-bit correct code.
8345 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
8347 * dumper.c (pdump_load_finish): move restoration of
8348 `noninteractive1' to emacs.c (main_1).
8349 * emacs.c (main_1): protect LISP-visible command-line flags
8352 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
8354 * Makefile.in.in (versionclean): Use EXE_TARGET and
8355 DUMP_TARGET instead of literal program names.
8357 2000-09-20 Martin Buchholz <martin@xemacs.org>
8359 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8361 2000-09-19 Martin Buchholz <martin@xemacs.org>
8363 * *: Spelling mega-patch
8365 2000-09-19 Martin Buchholz <martin@xemacs.org>
8367 * fns.c (bad_bad_turtle):
8368 Delete "Eek!" comment, since we fixed the bug to which it refers.
8370 2000-09-16 Martin Buchholz <martin@xemacs.org>
8372 * alloca.c: Replace REGISTER with register.
8374 2000-09-16 Daiki Ueno <ueno@unixuser.org>
8376 * file-coding.c (ucs_to_char): Use countof.
8378 2000-09-16 Martin Buchholz <martin@xemacs.org>
8380 * file-coding.c: (ucs_to_char):
8381 (complex_vars_of_file_coding):
8382 Use countof instead of sizeof.
8383 Use CHECK_NATNUM instead of CHECK_INT.
8385 * sysdep.c (strcasecmp): Remove.
8386 * device-x.c (ascii_strcasecmp): New.
8387 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8388 Avoid using non-standard non-portable strcasecmp.
8390 2000-09-16 Martin Buchholz <martin@xemacs.org>
8392 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8393 * font-lock.c: remove reference to emacsfns.h.
8394 * search.c: small doc improvement.
8395 * event-Xt.c: correct file names in comments.
8396 * console-x.h Correct file names in comments.
8397 * frame.c: Correct file names in comments.
8398 * event-stream.c: remove Energize from comments.
8400 2000-09-15 Martin Buchholz <martin@xemacs.org>
8402 * symeval.h (DEFERROR_STANDARD):
8405 (DEFSYMBOL_NO_DUMP):
8406 (DEFSYMBOL_MULTIWORD_PREDICATE):
8407 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8409 The construct &##name is not sensible C.
8410 Fixes compilation errors with Unixware native compiler.
8412 2000-09-14 Martin Buchholz <martin@xemacs.org>
8414 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8415 (next_frame_internal): Removed. We now just have next_frame.
8417 Write a simpler and cleaner one-pass algorithm.
8418 Remove called_from_delete_device arg and #ifdefed-out code.
8420 Renamed from prev_frame. Update callers.
8421 Cleaned up to have an analogous implementation to next_frame.
8422 (other_visible_frames_internal): Remove the
8423 called_from_delete_device bogus arg, and hence, remove this
8424 function. Just use other_visible_frames().
8426 * window.c (Fnext_window):
8428 Since next_frame() is guaranteed to return a frame, remove check
8429 for nil inserted in previous patch.
8432 Make code look more like Fnext_window.
8434 Respect the `console' arg when iterating through windows.
8435 Fixes bug: (get-buffer-window buffer t device) not respecting
8437 This function needs more work, as others have pointed out.
8439 * frame.h: Rename prev_frame to previous_frame.
8440 device_matches_console_spec no longer takes a `frame' arg.
8445 Use EMACS_BLOCK_SIGNAL instead of sigblock.
8446 From "Golubev I. N." <gin@mo.msk.ru>.
8448 * make-src-depend: Fix typo.
8450 2000-09-13 Martin Buchholz <martin@xemacs.org>
8452 * window.c (Fnext_window):
8453 next_frame() might return nil, not a frame.
8455 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8457 * frame.c (next_frame_internal):
8458 We've passed a frame if we've passed its device.
8460 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8461 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8463 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
8465 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8466 Allow option to suppress accelerators in menu/dialog items.
8467 (populate_or_checksum_helper): Pass dialog title through above.
8469 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
8471 * event-msw.c (mswindows_key_to_emacs_keysym):
8472 Add "pause" key, fix "menu" key.
8474 2000-09-09 Martin Buchholz <martin@xemacs.org>
8476 * eval.c (reinit_vars_of_eval):
8477 Increase max_lisp_eval_depth to 1000,
8478 required for thai-xtis.el to byte-compile under some circumstances.
8480 2000-09-04 Martin Buchholz <martin@xemacs.org>
8482 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8485 2000-09-01 Martin Buchholz <martin@xemacs.org>
8487 * make-src-depend: Make the generated Makefiles smaller.
8489 * s/hpux.h (SETUP_SLAVE_PTY):
8490 Provide a %d in the format string for the errno argument.
8492 * editfns.c (Ftemp_directory):
8494 Avoid buffer overrun on very long file name.
8496 * input-method-xlib.c (XIM_init_device):
8497 6th parameter of XRegisterIMInstantiateCallback has different
8498 pointer types on different OSes, so simply cast to (void *).
8500 * unexhp9k800.c: Warning fixes. Fiddly changes.
8502 * sysdll.c (dll_open):
8503 shl_load will hang hard if passed a NULL filename.
8504 Simply return NULL for compatibility with dlopen.
8505 * sysdll.c: Conform to XEmacs coding standards.
8507 * sysdep.c (get_pty_max_bytes):
8508 Support pty input lines longer than 512 bytes on HP-UX 10.20.
8510 2000-08-31 Martin Buchholz <martin@xemacs.org>
8512 * tooltalk.c: Add #include <syssignal.h>
8514 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
8516 * s/hpux.h: Don't use undefined function sigunblock().
8518 2000-08-31 Martin Buchholz <martin@xemacs.org>
8520 * config.h.in: Add HAVE_BALLOON_HELP.
8521 * emacs.c: Use HAVE_BALLOON_HELP.
8522 * Makefile.in.in (x_objs):
8523 Make Balloon Help conditional on finding shape.h.
8525 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
8527 * syntax.c (regex_emacs_buffer_p): New variable.
8528 * syntax.h (regex_emacs_buffer_p): extern.
8529 * search.c (looking_at_1):
8531 (fast_string_match):
8532 (search_buffer): Set regex_emacs_buffer_p.
8533 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8534 when before_dot, at_dot, after_dot.
8536 2000-08-23 Andy Piper <andy@xemacs.org>
8538 * gui-x.c (popup_selection_callback): Only set action_occurred
8539 when we really have an image instance.
8540 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8542 2000-08-23 Andy Piper <andy@xemacs.org>
8544 * gui-msw.c (mswindows_handle_gui_wm_command): set
8546 * gui-x.c (popup_selection_callback): ditto.
8548 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8549 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8550 (struct Lisp_Image_Instance): add action_occurred flag.
8552 * glyphs.c (redisplay_subwindow): use action_occurred flag.
8553 (image_instance_changed): ditto.
8554 (reset_frame_subwindow_instance_cache): only unmap windows - do
8555 not remove them from the cache also.
8557 * glyphs-widget.c (tab_control_update): better debug.
8558 (progress_gauge_update): ditto.
8559 (layout_update): ditto.
8560 (layout_instantiate): ditto.
8561 (tab_control_order_only_changed): cope with null pending items.
8563 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8564 debug. Force selection of an item when an action occurred. Cope
8565 with null pending_items.
8566 (mswindows_progress_gauge_redisplay): better debug.
8567 * glyphs-x.c (x_tab_control_redisplay): ditto.
8569 * redisplay.c (redisplay_frame): reset the frame cache if the
8572 * window.c (Fset_window_configuration): potentially re-enable
8574 (window_unmap_subwindows): need to finalize instances here since
8575 it is only used in mark_window_as_deleted.
8577 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
8579 * nas.c (SndOpenDataForReading):
8580 nas.c (WaveOpenDataForReading):
8581 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8582 Somehow escaped from the 2000-08-14 patch.
8584 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
8586 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8587 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8589 2000-08-21 Andy Piper <andy@xemacs.org>
8591 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8592 window if it is not already displayed.
8594 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8595 it is not already displayed.
8597 * window.c (Fset_window_configuration): don't reset the frame
8600 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8601 instances from the frame cache if we are actually finalizing them.
8602 (reset_frame_subwindow_instance_cache): reset frame cache only
8603 after unmapping everything.
8604 (map_subwindow): set displayed flag after mapping.
8606 2000-08-21 Martin Buchholz <martin@xemacs.org>
8608 * data.c (indirect_function):
8609 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8611 * eval.c (function_argcount):
8612 Use original function when signaling errors.
8614 2000-08-18 Andy Piper <andy@xemacs.org>
8616 * frame.c (delete_frame_internal): use new
8617 free_frame_subwindow_instances name.
8619 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8620 (add_tab_item): make return type correct.
8621 (mswindows_tab_control_instantiate): assert index of tab.
8622 (mswindows_tab_control_redisplay): Re-code to use
8623 gui_item_equal_sans_selected and gui_item_list_find_selected.
8625 * glyphs-widget.c (tab_control_update): Correct comment.
8627 * window.c (window_unmap_subwindows): use new
8628 unmap_subwindow_instance_cache_mapper.
8629 (window_unmap_subwindows_cache_mapper): deleted.
8630 (Fset_window_configuration): comparisons should now be with
8631 EQ. Preserve the subwindow instance cache across configuration
8633 (allocate_window): ditto.
8634 (make_dummy_parent): ditto.
8636 * glyphs.c (free_frame_subwindow_instances): rename from
8637 free_frame_subwindow_instance_cache. finalize all instances rather
8638 than just those in the display cache.
8639 (finalize_all_subwindow_instances): walk windows unmapping and
8640 finalizing subwindows.
8641 (unmap_subwindow_instance_cache_mapper): moved from
8642 window.c. Allow finalization as well as unmapping.
8644 * gui.c (gui_item_list_find_selected): new function.
8646 * gui.h (gui_item_list_find_selected): declare.
8648 * glyphs-x.c (x_tab_control_redisplay): pick tab
8649 explicitly. Re-code to use gui_item_equal_sans_selected and
8650 gui_item_list_find_selected.
8652 * glyphs-x.h: add lwlib-utils.h
8654 * buffer.c (Frecord_buffer): undo previous change.
8656 2000-08-09 Vin Shelton <acs@xemacs.org>
8658 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8659 possible. Create temporary files more securely. The patch was
8660 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8661 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
8662 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8665 2000-08-07 Ben Wing <ben@xemacs.org>
8667 * getloadavg.c: remove duplicate (and windows-breaking)
8668 includes of fcntl.h and sys/file.h.
8670 * nt.c: remove duplicate getloadavg() definition.
8672 * sysdll.h (Qdll_filename_encoding): add missing stand-in
8675 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
8677 * eval.c (function_argcount): If function needs to be autoloaded
8678 actually use the loaded definition.
8681 2000-08-05 Ben Wing <ben@xemacs.org>
8683 * getloadavg.c: add prototype for getloadavg(). remove
8684 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8685 of the code). remove duplicate header includes.
8687 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8689 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8690 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8691 useful load average.
8693 * alloc.c (reinit_alloc_once_early): removed references to
8694 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8695 the lisp vars are the only things referencing the malloc_sbrk_*
8696 vars, and they were already if 0'd out. these vars only exist
8697 in the older malloc.c, which is basically unused, and they're
8698 only for informational purposes.
8700 * m\*.h: removed useless VIRT_ADDR_VARIES.
8702 * m\powerpc.h: removed stray NO_ARG_ARRAY.
8704 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
8706 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8707 color if the image is a mono pixmap.
8709 2000-07-30 Ben Wing <ben@xemacs.org>
8711 * Makefile.in.in (release):
8714 * buffer.c (directory_is_current_directory):
8715 * dired-msw.c (mswindows_get_files):
8717 * dired.c (Fdirectory_files):
8718 * dired.c (file_name_completion_stat):
8719 * dired.c (Ffile_attributes):
8720 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8721 preprocessor tricks, to avoid problems on some machines
8724 * callproc.c (egetenv): GC docs.
8727 * console-msw.h (struct mswindows_dialog_id):
8728 * lrecord.h (lrecord_type):
8729 New object for use with MSW dialogs.
8731 * console.h (struct console_methods):
8732 New enable/disable frame methods, for proper modal dialogs.
8734 * device-msw.c (msprinter_default_printer): Fix to follow
8735 proper Mule conventions.
8738 * device-msw.c (signal_open_printer_error):
8739 * device-msw.c (msprinter_init_device):
8740 * device-msw.c (ensure_not_printing):
8741 * device-msw.c (plist_get_margin):
8742 * device-msw.c (Fmsprinter_select_settings):
8743 * device-msw.c (finalize_devmode):
8744 * device-msw.c (Fmsprinter_settings_despecialize):
8745 * device-msw.c (signal_enum_priner_error):
8746 * extents.c (decode_extent):
8747 * extents.c (decode_map_extents_flags):
8748 * extents.c (decode_extent_at_flag):
8749 * extents.c (Fextent_at):
8750 * extents.c (Fextents_at):
8751 * extents.c (symbol_to_glyph_layout):
8752 [[[[2]]]] Use structured errors.
8755 * dialog-msw.c (mswindows_is_dialog_msg):
8756 * dialog-msw.c (mark_mswindows_dialog_id):
8757 * dialog-msw.c (dialog_proc):
8758 * dialog-msw.c (handle_question_dialog_box):
8759 * dialog-msw.c (syms_of_dialog_mswindows):
8760 Define new object to clean up marking; use it as a dialog identifier.
8761 Call new delete-dialog-box-hook.
8763 * dialog-x.c (dbox_selection_callback):
8764 * dialog-x.c (dbox_descriptor_to_widget_value):
8765 * dialog-x.c (x_make_dialog_box_internal):
8766 Call new delete-dialog-box-hook.
8770 * dialog.c (syms_of_dialog):
8771 * dialog.c (vars_of_dialog):
8772 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8775 * eval.c (signal_call_debugger):
8776 when noninteractive, output stack traces on the console instead
8777 of in a (never-seen) buffer.
8779 * eval.c (signal_type_error):
8780 * eval.c (invalid_argument_2):
8782 new funs for use w/structured errors.
8785 * event-Xt.c (x_to_emacs_keysym):
8786 * event-Xt.c (describe_event):
8787 * event-Xt.c (emacs_Xt_event_handler):
8788 * event-Xt.c (vars_of_event_Xt):
8790 * event-msw.c (mswindows_wnd_proc):
8791 * event-msw.c (vars_of_event_mswindows):
8792 rename {x,mswindows}-debug-events to debug-{}-events for
8793 consistency with other debug-foo variables.
8796 document next-event more clearly.
8798 * fileio.c (Ffile_name_directory):
8799 * fileio.c (Ffile_name_nondirectory):
8800 * fileio.c (Funhandled_file_name_directory):
8801 * fileio.c (file_name_as_directory):
8802 * fileio.c (Ffile_name_as_directory):
8803 * fileio.c (directory_file_name):
8804 * fileio.c (Fdirectory_file_name):
8805 * fileio.c (Fmake_temp_name):
8806 * fileio.c (Ffile_truename):
8807 * fileio.c (Fsubstitute_in_file_name):
8808 * fileio.c (expand_and_dir_to_file):
8809 * fileio.c (barf_or_query_if_file_exists):
8810 * fileio.c (check_executable):
8811 * fileio.c (Ffile_exists_p):
8812 * fileio.c (Ffile_writable_p):
8813 * fileio.c (Ffile_directory_p):
8814 * fileio.c (Ffile_regular_p):
8815 * fileio.c (Ffile_modes):
8816 * fileio.c (Ffile_newer_than_file_p):
8817 * fileio.c (Fverify_visited_file_modtime):
8818 * fileio.c (Fset_visited_file_modtime):
8819 * fileio.c (auto_save_1):
8824 * frame-msw.c (mswindows_init_frame_1):
8825 * frame-msw.c (mswindows_enable_frame):
8826 * frame-msw.c (error_frame_unsizable):
8827 * frame-msw.c (msprinter_init_frame_1):
8828 * frame-msw.c (msprinter_init_frame_3):
8829 * frame-msw.c (console_type_create_frame_mswindows):
8831 implement new enable/disable frame methods.
8834 * frame-x.c (x_enable_frame):
8835 * frame-x.c (console_type_create_frame_x):
8836 implement new enable/disable frame methods.
8839 * frame.c (Fdisable_frame):
8840 * frame.c (syms_of_frame):
8841 * frame.h (struct frame):
8842 implement new enable/disable frame methods/functions.
8847 * glyphs-msw.c (mswindows_widget_instantiate):
8848 comment that initial-focus should be implemented.
8851 * glyphs-widget.c (check_valid_instantiator):
8852 * glyphs-widget.c (check_valid_orientation):
8853 * glyphs-widget.c (check_valid_tab_orientation):
8854 * glyphs-widget.c (check_valid_justification):
8855 * glyphs-widget.c (check_valid_border):
8856 * glyphs-widget.c (check_valid_callback):
8857 * glyphs-widget.c (check_valid_int_or_function):
8858 * glyphs-widget.c (check_valid_string_or_vector):
8859 * glyphs-widget.c (check_valid_item_list_1):
8860 * glyphs-widget.c (widget_validate):
8861 * glyphs-widget.c (combo_box_validate):
8862 * glyphs-widget.c (widget_instantiate):
8863 * glyphs-widget.c (syms_of_glyphs_widget):
8864 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8865 * glyphs-widget.c (image_instantiator_combo_box):
8866 * glyphs-widget.c (image_instantiator_scrollbar):
8867 * glyphs-widget.c (image_instantiator_tab_control):
8868 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8870 support (unimplemented) keyword initial-focus.
8871 reindent long macros.
8873 * glyphs-x.c (x_redisplay_widget):
8874 * glyphs-x.c (x_button_instantiate):
8875 * glyphs-x.c (x_button_redisplay):
8876 * glyphs-x.c (x_progress_gauge_instantiate):
8877 * glyphs-x.c (x_edit_field_instantiate):
8878 * glyphs-x.c (x_combo_box_instantiate):
8879 * glyphs-x.c (x_tab_control_instantiate):
8880 * glyphs-x.c (x_label_instantiate):
8882 * gui-x.c (button_item_to_widget_value):
8883 * gui-x.c (gui_items_to_widget_values_1):
8884 * gui-x.c (gui_item_children_to_widget_values):
8885 * gui-x.c (gui_items_to_widget_values):
8887 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8888 add new flag to gui-parsing routines to indicate whether
8889 accelerator specs should be supported.
8891 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8893 * glyphs.h (struct Lisp_Image_Instance):
8894 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8895 add initial-focus flag.
8898 * gui.c (syms_of_gui):
8899 * gui.c (vars_of_gui):
8900 clean up menu-no-selection-hook.
8903 support delete-dialog-box-hook.
8905 * lread.c (Fload_internal):
8906 * lread.c (locate_file_in_directory_mapper):
8910 * lrecord.h (struct toolbar_button):
8911 * lrecord.h (syms_of_toolbar):
8912 document how to create a new object.
8914 * menubar-msw.c (mswindows_char_is_accelerator):
8915 may be called on frames w/o menus.
8917 * menubar.c (vars_of_menubar):
8918 clean up :filter docs.
8925 * process-nt.c (validate_signal_number):
8926 * process-nt.c (signal_cannot_launch):
8927 * process-nt.c (nt_create_process):
8928 * process-nt.c (nt_send_process):
8929 * process-nt.c (nt_kill_child_process):
8930 * process-nt.c (nt_open_network_stream):
8931 * process-nt.c (syms_of_process_nt):
8933 delete quote-handling. call new lisp code that does it better.
8935 * process-unix.c (connect_to_file_descriptor):
8936 * process-unix.c (allocate_pty):
8937 * process-unix.c (unix_send_process):
8938 * process-unix.c (unix_kill_child_process):
8939 * process-unix.c (unix_open_network_stream):
8940 * process-unix.c (unix_open_multicast_group):
8944 * process.c (Fstart_process_internal):
8945 (2). need to canonicalize process path even if absolute.
8947 * select-msw.c (symbol_to_ms_cf):
8948 * select-msw.c (ms_cf_to_symbol):
8949 * select-msw.c (cf_is_autofreed):
8950 * select-msw.c (mswindows_destroy_selection):
8952 * select.c (syms_of_select):
8954 support dibv5, fix bugs. (from Mike Alexander)
8956 * select.c (Fget_selection_internal):
8957 * select.c (select_convert_out):
8960 * sysdep.c (xemacs_stat):
8965 but keep original stat() here because we provide encapsulation
8969 * sysfile.h (fstat):
8970 remove stat garbage.
8974 don't include tchar.h. it's inappropriate because it makes
8975 compile-time distinctions when we want runtime distinctions.
8976 (we provide our own tchar replacements)
8979 use default object printer for toolbar-button.
8982 make sure we don't encapsulate.
8984 * window.c (vars_of_window):
8985 emphasize that temp-buffer-show-hook is obsolete.
8987 2000-08-05 Martin Buchholz <martin@xemacs.org>
8989 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8990 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8992 * events.c (Fevent_timestamp_lessp):
8993 Not 64-bit clean. Use EMACS_INT, not int.
8995 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
8997 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8998 unsigned int and changed the last enum to
8999 lrecord_type_last_built_in_type.
9000 (lrecord_implementations_table): changed prototype to know how
9001 long the array is supposed to be.
9002 (lrecord_type_count): new unsigned int to keep track of the
9003 current number of lisp lrecord types.
9004 (DEFINE_EXTERNAL_LRECORD):
9005 (DECLARE_EXTERNAL_LRECORD): Added these two for external
9006 dynamic-modules to declare new lisp types. They are the same
9007 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9008 int for each new type, and increment lrecord_type_count by 1.
9010 * alloc.c (lrecord_implementations_table): Changed to reference
9011 lrecord_type_last_built_in_type for the size of the array.
9012 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9014 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9016 * glyphs.h (check_valid_item_list): Renamed from
9017 check_valid_item_list_1.
9019 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9021 * select.c (Qselect_coerce): New.
9022 * select.c (Vselection_coercion_alist): New.
9023 * select.c (syms_of_select): Declare.
9024 * select.c (get-selection-internal): Use it.
9025 Use the new select-coerce functionality.
9027 * select.c (select_coerce): New.
9028 * select.h (select_coerce): Declare.
9029 New function to coerce one type of data into another.
9031 2000-08-03 Martin Buchholz <martin@xemacs.org>
9033 * callproc.c (Fcall_process_internal):
9034 (Fcall_process_internal):
9035 * process-unix.c (unix_create_process):
9036 Save and restore the value of errno, so that error messages are accurate.
9038 2000-08-01 Martin Buchholz <martin@xemacs.org>
9040 * elhash.c (print_hash_table):
9041 Fix printing of hash tables to also use `key-and-value' instead of `t'.
9042 Prettify docstrings and indentation.
9044 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
9046 * window.c (Fwindow_pixel_edges): Subtract frame border and
9049 2000-07-31 Andy Piper <andy@xemacs.org>
9051 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9052 will acknowledge the change.
9054 * glyphs.h: declare tab_control_order_only_changed.
9056 * glyphs-x.c (x_tab_control_redisplay): use
9057 tab_control_order_only_changed.
9059 * glyphs-widget.c (tab_control_order_only_changed): new function.
9061 * glyphs-msw.c (mswindows_tab_control_redisplay): use
9062 tab_control_order_only_changed.
9064 * gui.c (gui_item_equal_sans_selected): new function.
9065 (gui_item_equal): use it.
9067 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9068 :properties in favor of :items..
9070 * glyphs-widget.c (check_valid_item_list): rename from
9071 check_valid_item_list_1.
9072 (check_valid_item_list_1): renamed.
9073 (combo_box_validate): deprecate :properties in favor of :items.
9074 (widget_instantiate): ditto.
9075 (tab_control_update): ditto.
9076 (image_instantiator_combo_box): ditto.
9077 (image_instantiator_tree_view): ditto.
9078 (image_instantiator_tab_control): ditto.
9079 (layout_post_instantiate): remove dead code.
9081 * print.c (debug_print_no_newline): only write to debugger if in
9084 * elhash.c (Fmake_hash_table): update doc string.
9086 * event-msw.c (mswindows_wnd_proc): don't allow processing of
9087 messages whilst in GC. This at least stops XEmacs crashing but has
9088 the potential for wierd behaviour.
9090 2000-07-31 Martin Buchholz <martin@xemacs.org>
9093 Make existence of s&m files optional.
9095 * s/bsd386.h: Remove HAVE_GETLOADAVG.
9096 * s/freebsd.h: Remove HAVE_GETLOADAVG.
9097 * s/gnu.h: Remove HAVE_GETLOADAVG.
9098 * s/netbsd.h: Remove HAVE_GETLOADAVG.
9099 * s/sol2.h: Remove HAVE_GETLOADAVG.
9100 * lisp.h: Remove getloadavg() declaration.
9102 Include <sys/loadavg.h> if available.
9103 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9104 * config.h.in: Group together getloadavg()-related macros.
9105 Use only configure-time tests to detect getloadavg().
9107 2000-07-30 Martin Buchholz <martin@xemacs.org>
9109 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9111 2000-07-25 Andy Piper <andy@xemacs.org>
9113 * syswindows.h: add tchar.h for native builds.
9115 * frame.c (syms_of_frame): remove set-glyph-image.
9117 * general-slots.h: add Qset_glyph_image.
9119 * glyphs-widget.c (layout_update): add domain arg to
9121 (syms_of_glyphs_widget): remove set-glyph-image.
9123 2000-07-23 Ben Wing <ben@xemacs.org>
9125 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9128 2000-07-22 Andy Piper <andy@xemacs.org>
9130 * symsinit.h: add syms_of_win32().
9132 * gui-msw.c (syms_of_gui_mswindows): remove
9133 Fmswindows_shell_execute.
9134 (Fmswindows_shell_execute): moved to win32.c.
9136 * emacs.c (main_1): add syms_of_win32 ().
9138 * win32.c (init_potentially_nonexistent_functions): rewrite in
9139 compiler-friendly terms.
9140 (Fmswindows_shell_execute): move here from gui-msw.c.
9141 (syms_of_win32): new.
9143 * device-msw.c (Fmswindows_printer_list): clean up args to
9145 Don't include tchar under cygwin or mingw.
9146 (msprinter_default_printer): make cygwin-friendly.
9148 2000-07-21 Andy Piper <andy@xemacs.org>
9150 * glyphs-widget.c (image_instantiator_tree_view): use tab
9151 control's update function.
9152 (layout_property): new function. Retrieve items.
9154 * glyphs-msw.c (mswindows_tree_view_redisplay): new
9155 function. Re-populate the tree view from the pending items.
9157 * glyphs.c (instantiate_image_instantiator): Make sure the domain
9158 is designated the parent if the domain is an image instance. This
9159 is needed so that dirtiness can be cascade up the hierarchy and
9160 thus for layout children to be redisplayed correctly.
9161 (allocate_image_instance): rename glyph -> parent.
9163 * redisplay.h: change redisplay_output_layout signature.
9165 * redisplay-msw.c (mswindows_output_display_block): use domain
9168 * redisplay-x.c (x_output_display_block): use domain arg.
9170 2000-07-10 Andy Piper <andy@xemacs.org>
9172 * window.c (Fset_window_configuration): add comment.
9174 * redisplay-output.c (compare_runes):
9175 (redisplay_output_subwindow): redisplay rather than update subwindow.
9176 (redisplay_output_layout): ditto.
9178 * redisplay-msw.c (mswindows_frame_output_end):
9179 (mswindows_frame_output_end): make defer window pos optional.
9181 * lisp.h: add Flast.
9183 * glyphs.h (struct image_instantiator_methods): add dest_mask top
9184 normalize method. Change update method to be for changed
9185 instantiators. Add redisplay method. Change signature of layout
9187 (struct Lisp_Image_Instance): add instantiator.
9188 (IMAGE_INSTANCE_INSTANTIATOR): new.
9189 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9190 (XIMAGE_INSTANCE_INSTANTIATOR): new.
9191 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9194 (find_instantiator_differences): new function.
9195 (Fset_instantiator_property): new convenience function.
9196 (check_image_instance_structure): strictly check for vector
9198 (normalize_image_instantiator): make non-static.
9199 (instantiate_image_instantiator): pass on dest_mask and use new
9200 signatures for image_instance_layout and friends.
9201 (mark_image_instance): mark the instantiator. Mark the subwindow
9202 face not the widget face.
9203 (image_instance_equal): add instantiator.
9204 (image_instance_hash): ditto.
9205 (allocate_image_instance): ditto.
9206 (Fset_image_instance_property): removed.
9207 (Fimage_instance_file_name): ditto.
9208 (Fcolorize_image_instance): ditto.
9209 (image_instance_layout): add offsets to be set.
9210 (update_image_instance): new function. update an image instance
9211 from its changed instantiator.
9212 (inherit_normalize): add dest_mask.
9213 (xbm_normalize): ditto.
9214 (xface_normalize): ditto.
9215 (xpm_normalize): ditto.
9216 (text_update): set_property -> update.
9217 (image_instantiate): use the glyph identity as a hash key, not the
9219 (glyph_width): use new image_instance_layout signature.
9220 (glyph_ascent): ditto.
9221 (glyph_descent): ditto.
9222 (glyph_height): ditto.
9223 (glyph_query_geometry): ressurrect.
9224 (glyph_layout): ditto.
9225 (redisplay_subwindow): update -> redisplay.
9226 (syms_of_glyphs): add Fset_instantiator_property.
9227 (image_instantiator_format_create): set_property -> update.
9230 (autodetect_normalize): add dest_maks to signature.
9231 (x_redisplay_subwindow): update -> redisplay.
9232 (x_redisplay_widget): ditto.
9233 (x_button_redisplay): ditto.
9234 (x_progress_gauge_redisplay): ditto.
9235 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9237 (console_type_create_glyphs_x): update -> redisplay.
9238 (image_instantiator_format_create_glyphs_x): ditto.
9241 (check_valid_instantiator): disallow glyphs in the instantiator,
9242 they must now be vectors.
9243 (check_valid_instantiator_list): ditto.
9244 (glyph_instantiator_to_glyph): use internal symbol rather than
9246 (widget_update): renamed from widget_set_property. Call cascaded
9248 (redisplay_widget): renamed from update_widget.
9249 (widget_layout): image_instance_layout now takes position as well
9251 (widget_normalize): ditto.
9252 (widget_instantiate): ditto.
9253 (tab_control_query_geometry) ditto.:
9254 (tab_control_update): renamed from tab_control_set_property.
9255 (progress_gauge_update): set_property -> update.
9256 (layout_normalize): rewrite so that child instantiators are
9258 (layout_update): new function. Create glyphs from the normalized
9259 children and cope with any other layout keywords. We do not
9260 instantiate children here that will be take care of by
9261 redisplay_output_layout.
9262 (layout_instantiate): call layout_update and not much else.
9263 (layout_post_instantiate): not sure whether this is needed
9265 (layout_query_geometry): query glyph geometry rather than
9266 image_instance geometry.
9267 (layout_layout): set offsets from pass in parameters. Use glyph
9268 geometry and layout functions rather than image instance ones.
9269 (native_layout_layout): ditto.
9270 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9271 (image_instantiator_widget): set_property -> update.
9272 (image_instantiator_buttons): ditto.
9273 (image_instantiator_progress_guage): ditto.
9274 (image_instantiator_tab_control): ditto.
9275 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9276 (image_instantiator_layout): add update method.
9278 * glyphs-msw.c (bmp_normalize):
9279 (mswindows_resource_normalize): add dest_mask so that it can be
9280 proprogated by layout_normalize.
9281 (begin_defer_window_pos): make optional because it may not be the
9282 right thing to do and it introduces differences with X.
9283 (mswindows_unmap_subwindow): ditto.
9284 (mswindows_map_subwindow): ditto.
9285 (mswindows_redisplay_subwindow): renamed from
9286 mswindows_update_subwindow.
9287 (mswindows_redisplay_widget): ditto.
9288 (mswindows_button_redisplay): renamed from
9289 mswindows_button_update. Update is now what the instantiation
9290 function does for a changed instantiator.
9291 (mswindows_progress_gauge_instantiate): set the progress value
9292 here if appropriate.
9293 (mswindows_tab_control_redisplay): cope with re-ordering of the
9294 members of the tab widget by simply selecting the new top
9295 widget. This makes things appear ok if you click on a tab.
9296 (mswindows_combo_box_instantiate): image_instance_layout now takes
9297 position as well as size.
9298 (mswindows_progress_gauge_redisplay): renamed from
9299 mswindows_progress_gauge_update.
9300 (console_type_create_glyphs_mswindows): fix update -> redisplay.
9301 (image_instantiator_format_create_glyphs_mswindows): ditto.
9303 * glyphs-eimage.c (jpeg_normalize):
9306 (tiff_normalize): add dest_mask so that it can be proprogated by
9311 (hash_table_weakness_validate):
9312 (decode_hash_table_weakness):
9313 (Fhash_table_weakness):
9315 (syms_of_elhash): use Ben's naming scheme for hashtable types..
9317 * console.h (struct console_methods): move update_* to
9320 2000-07-20 Ben Wing <ben@xemacs.org>
9322 * *.[ch] (XSETOBJ): remove unused middle argument.
9323 lisp-disunion.h: correct wrap_object() to one argument.
9325 2000-07-15 Ben Wing <ben@xemacs.org>
9328 * s/cygwin32.h (CYGWIN_CONV_PATH):
9329 Add missing logb prototype for v1.1.
9330 Use post-b20 names and alias to pre-b20 names when pre-b20.
9332 * s/windowsnt.h: [5].
9334 2000-07-15 Ben Wing <ben@xemacs.org>
9336 * Makefile.in.in (x_objs):
9337 * Makefile.in.in (sheap_objs):
9338 * Makefile.in.in (objs):
9339 added win32.o, cosmetic cleanups.
9341 * alloc.c (Fmake_byte_code):
9342 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9343 etc. macros which declare their own args now.
9345 * alloc.c (syms_of_alloc):
9346 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9349 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9351 * buffer.c (Fget_file_buffer):
9352 Fixed GCPRO problem.
9354 * buffer.c (get_truename_buffer):
9355 Fixed comment about GC checking.
9357 * buffer.c (syms_of_buffer):
9358 Undeclared those dedicated frame funs.
9362 Define convenience macros for internal/external conversions.
9363 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9364 and Qenvironment_variable_encoding for cleaner code.
9367 Remove dedicated-frame; in lisp.
9369 * bytecode.c (funcall_compiled_function):
9372 * bytecode.c (syms_of_bytecode):
9376 * console-msw.c (mswindows_show_console): Rewrote.
9378 * console-msw.c (Fmswindows_debugging_output): New.
9379 Sends to OutputDebugString (special MSWin debugger interface).
9381 * console-msw.c (Fmswindows_message_box):
9382 Fixed stupid bugs so it works when called from kill-emacs.
9384 * console-msw.c (syms_of_console_mswindows):
9385 Declare Fmswindows_debugging_output.
9388 New MSWin prototypes.
9390 * console-msw.h (struct mswindows_frame):
9391 New entry last-click-mods for improved button-modifier support.
9393 * console-msw.h (FRAME_MSWINDOWS_POPUP):
9394 New struct entry `popup' with corresponding accessor.
9397 * console-x.c (split_up_display_spec):
9398 * console-x.c (get_display_arg_connection):
9399 * console-x.c (x_semi_canonicalize_console_connection):
9400 * console-x.c (x_canonicalize_device_connection):
9401 [[[6]]]: Change char to more specific type.
9402 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9404 * console-x.c (x_semi_canonicalize_console_connection):
9405 * console-x.c (x_canonicalize_device_connection):
9406 [[[9]]]: Fix up error signalling to use new structured error system.
9409 [[[4]]]: Define codesys aliases:
9410 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9411 Qx_color_name_encoding, Qx_display_name_encoding.
9413 * console.h (struct console_methods):
9414 New method make_dialog_box_internal supersedes older
9415 popup_dialog_box method.
9418 Define many new errors, part of new structured errors.
9420 * data.c (init_errors_once_early):
9421 * data.c (syms_of_data):
9424 * device-msw.c (mswindows_init_device):
9425 [[[5]]]: Cleanup to support NT 3.51.
9427 * device-msw.c (decode_devmode): Cleanup.
9429 * device-msw.c (mswindows_handle_print_setup_dialog_box):
9430 * device-msw.c (mswindows_handle_print_dialog_box):
9431 * device-msw.c (mswindows_handle_page_setup_dialog_box):
9432 * device-msw.c (syms_of_device_mswindows):
9433 Delete the dialog box primitives recently introduced by Kirill and
9434 instead interface to general dialog box interface.
9437 * device-x.c (compute_x_app_name):
9438 * device-x.c (x_init_device):
9439 * device-x.c (Fx_valid_keysym_name_p):
9440 * device-x.c (Fx_set_font_path):
9444 * device.h (wrap_device): New.
9445 First of its kind; meant to replace XSETDEVICE.
9447 * dialog-msw.c: Many file-dialog symbols.
9449 * dialog-msw.c (mswindows_register_popup_frame): New.
9450 * dialog-msw.c (mswindows_is_dialog_msg): New.
9451 For supporting kbd traversal in dialog boxes.
9453 * dialog-msw.c (dialog_proc):
9454 Support hitting ESC in dialogs.
9456 * dialog-msw.c (struct):
9457 Common dialog box errors.
9459 * dialog-msw.c (handle_file_dialog_box): New.
9460 Add file dialog code.
9462 * dialog-msw.c (handle_question_dialog_box):
9463 Redo existing code to support new question dialog syntax.
9465 * dialog-msw.c (console_type_create_dialog_mswindows):
9466 We support new dialog console method.
9468 * dialog-msw.c (syms_of_dialog_mswindows):
9469 * dialog-msw.c (vars_of_dialog_mswindows):
9470 New file dialog symbols, vars.
9473 * dialog-x.c (maybe_run_dbox_text_callback):
9474 * dialog-x.c (dbox_descriptor_to_widget_value):
9475 * dialog-x.c (x_make_dialog_box_internal):
9476 * dialog-x.c (console_type_create_dialog_x):
9477 Mule-ize entire file.
9478 Redo to support question dialog syntax.
9482 * dialog.c (Fmake_dialog_box_internal):
9483 * dialog.c (syms_of_dialog):
9484 Kill old popup-dialog-box, replace with new primitive.
9485 Just call device method or signal error.
9487 * eldap.c (Fldap_open):
9488 * eldap.c (Fldap_search_basic):
9489 * eldap.c (Fldap_add):
9490 * eldap.c (Fldap_modify):
9495 * emacs.c (make_arg_list_1):
9496 * emacs.c (make_arg_list):
9497 Mule-ize call to dll_init().
9501 * emacs.c (make_argc_argv):
9502 * emacs.c (free_argc_argv):
9503 * emacs.c (init_cmdargs):
9505 * emacs.c (Fkill_emacs):
9506 * emacs.c (Fdump_emacs):
9507 Update comments about what can be used in syms_* etc.
9508 Call init_win32() when necessary.
9509 Fix up MS Win dialog box in kill-buffer to actually work right.
9520 * eval.c (condition_case_3):
9522 * eval.c (function_argcount):
9523 * eval.c (funcall_lambda):
9526 * eval.c (type_error): New.
9527 * eval.c (maybe_type_error): New.
9528 * eval.c (continuable_type_error): New.
9529 * eval.c (maybe_continuable_type_error): New.
9530 * eval.c (type_error_with_frob): New.
9531 * eval.c (maybe_type_error_with_frob): New.
9532 * eval.c (continuable_type_error_with_frob): New.
9533 * eval.c (maybe_continuable_type_error_with_frob): New.
9534 New functions for use with structured errors.
9537 * event-Xt.c (x_event_to_emacs_event):
9538 Buttons are now modifiers too.
9540 * event-Xt.c (emacs_Xt_current_event_timestamp):
9541 Implement new event method.
9542 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9545 * event-msw.c (ntpipe_shove_writer): [5].
9546 * event-msw.c (mswindows_enqueue_mouse_button_event):
9547 * event-msw.c (mswindows_drain_windows_queue):
9548 * event-msw.c (mswindows_wnd_proc): [7].
9549 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9550 * event-msw.c (mswindows_modifier_state):
9551 Throughout: support new button modifiers.
9553 * event-msw.c (emacs_mswindows_current_event_timestamp):
9554 Implement new event method.
9555 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9558 * event-stream.c (event_stream_current_event_timestamp): New.
9559 * event-stream.c (maybe_kbd_translate): New functionality.
9560 * event-stream.c (vars_of_event_stream):
9561 Document new kbd-translate-table functionality.
9563 * event-stream.c (Fcurrent_event_timestamp): New.
9564 New primitive for use in fabricated events.
9565 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9567 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9570 * events.c (Fmake_event):
9571 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9575 * events.c (format_event_object): fix gcc warnings.
9577 * events.c (Fevent_timestamp): Document new primitives.
9579 * events.c (TIMESTAMP_HALFSPACE): New.
9581 * events.c (Fevent_timestamp_lessp): New. New primitive for
9582 comparing timestamps correctly (half-space algorithm).
9584 * events.c (Fevent_modifier_bits): Doc fix.
9586 * events.c (Fevent_modifiers): Major doc addition.
9587 * events.c (event_x_y_pixel_internal): Typo fix.
9588 * events.c (syms_of_events): Declare new primitives.
9591 Update long comment for button modifiers, timestamps.
9593 * events.h (struct event_stream):
9594 New current_event_timestamp method.
9597 * extents.c (extent_in_region_p):
9598 * extents.c (decode_extent):
9599 * extents.c (Fset_extent_parent):
9600 * extents.c (decode_map_extents_flags):
9604 * extents.c (struct extent_at_arg):
9605 * extents.c (decode_extent_at_flag):
9606 * extents.c (extent_at_mapper):
9607 * extents.c (extent_at_bytind):
9608 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9609 * extents.c (Fextents_at): New primitive. [9].
9610 * extents.c (symbol_to_glyph_layout): [9].
9611 Support new primitive `extents-at'.
9614 * extents.c (get_text_property_bytind):
9615 extent_at_bytind has another arg.
9618 * extents.c (syms_of_extents): New primitive.
9620 * file-coding.c (Fmake_coding_system): [1].
9621 * file-coding.c (subsidiary_coding_system): fix gcc warning
9622 * file-coding.c (syms_of_file_coding): [2].
9624 * fileio.c (Fexpand_file_name):
9625 * fileio.c (Fsysnetunam):
9626 * fileio.c (Ffile_exists_p):
9627 * fileio.c (Ffile_executable_p):
9628 * fileio.c (Fverify_visited_file_modtime):
9631 * fileio.c (syms_of_fileio): [2].
9633 * filelock.c (lock_file_1):
9634 * filelock.c (current_lock_owner):
9635 * filelock.c (lock_if_free):
9636 * filelock.c (lock_file):
9637 * filelock.c (unlock_file):
9640 * fns.c (concat): Fix gcc warning.
9643 * fns.c (Fold_member):
9645 * fns.c (Fold_memq):
9646 * fns.c (memq_no_quit):
9648 * fns.c (Fold_assoc):
9650 * fns.c (Fold_assq):
9651 * fns.c (assq_no_quit):
9653 * fns.c (Fold_rassoc):
9655 * fns.c (Fold_rassq):
9656 * fns.c (rassq_no_quit):
9658 * fns.c (Fold_delete):
9660 * fns.c (Fold_delq):
9661 * fns.c (delq_no_quit):
9662 * fns.c (Fremassoc):
9664 * fns.c (remassq_no_quit):
9665 * fns.c (Fremrassoc):
9666 * fns.c (Fremrassq):
9667 * fns.c (remrassq_no_quit):
9672 * frame-msw.c (mswindows_init_frame_1):
9673 * frame-msw.c (mswindows_delete_frame):
9674 Register popups with dialog code so keyboard traversing works.
9676 * frame-tty.c (tty_raise_frame_no_select): [1].
9679 * frame-x.c (x_set_frame_text_value):
9680 * frame-x.c (x_set_frame_properties):
9681 * frame-x.c (x_create_widgets):
9685 * frame.c (Fmouse_pixel_position): Minor doc fixes.
9687 * frame.h (wrap_frame): New.
9688 Macro like wrap_device.
9691 * general.c (SYMBOL):
9692 * general.c (syms_of_general):
9693 Major reorg. This is now just a wrapper and symbols themselves
9694 are listed in general-slots.h.
9696 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9697 * glyphs-msw.c (mswindows_resource_instantiate): [5].
9699 * glyphs-msw.c (mswindows_native_layout_instantiate):
9700 Add DS_CONTROL so keyboard traversal will work.
9703 * glyphs-widget.c (syms_of_glyphs_widget):
9704 Move some symbols to general-slots.h.
9707 * glyphs-x.c (xbm_instantiate_1):
9708 * glyphs-x.c (x_xbm_instantiate):
9709 * glyphs-x.c (x_xface_instantiate):
9710 * glyphs-x.c (autodetect_instantiate):
9711 * glyphs-x.c (cursor_font_instantiate):
9712 * glyphs-x.c (x_update_widget):
9713 * glyphs-x.c (x_widget_instantiate):
9714 * glyphs.c (bitmap_to_lisp_data):
9715 * glyphs.c (pixmap_to_lisp_data):
9718 * glyphs.c (syms_of_glyphs):
9722 * gui-x.c (print_widget_value):
9723 * gui-x.c (menu_separator_style_and_to_external):
9724 * gui-x.c (add_accel_and_to_external):
9725 * gui-x.c (button_item_to_widget_value):
9726 * gui-x.c (gui_items_to_widget_values_1):
9727 * gui-x.c (gui_items_to_widget_values):
9728 * gui-x.c (syms_of_gui_x):
9729 * gui-x.c (vars_of_gui_x):
9730 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
9734 Muleize, prototype changes matching gui-x.c.
9737 * gui.c (separator_string_p):
9738 * gui.c (gui_item_add_keyval_pair):
9739 * gui.c (make_gui_item_from_keywords_internal):
9740 * gui.c (signal_too_long_error):
9741 * gui.c (parse_gui_item_tree_item):
9742 * gui.c (syms_of_gui):
9743 * gui.c (vars_of_gui):
9745 menu-no-selection-hook moved here (used by MSWin).
9746 Move some symbols to general-slots.h.
9750 * insdel.c (get_buffer_pos_char):
9751 * insdel.c (get_buffer_range_char):
9754 * keymap.c (keymap_lookup_directly):
9755 * keymap.c (keymap_store):
9756 * keymap.c (ensure_meta_prefix_char_keymapp):
9757 * keymap.c (describe_map):
9759 Support new button modifiers.
9761 * lisp-disunion.h (wrap_object):
9762 * lisp-disunion.h (XSETOBJ):
9763 Rename make_obj to wrap_object.
9766 * lisp-union.h (make_int):
9767 * lisp-union.h (make_char):
9768 Support wrap_object.
9771 * lisp.h (LIST_LOOP):
9772 * lisp.h (EXTERNAL_LIST_LOOP):
9773 * lisp.h (LIST_LOOP_2):
9774 * lisp.h (EXTERNAL_LIST_LOOP_1):
9775 * lisp.h (EXTERNAL_LIST_LOOP_2):
9776 * lisp.h (EXTERNAL_LIST_LOOP_3):
9777 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9778 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9779 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9780 * lisp.h (EXTERNAL_ALIST_LOOP_5):
9781 * lisp.h (EXTERNAL_ALIST_LOOP_6):
9782 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9783 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9784 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9785 * lisp.h (struct Lisp_Symbol):
9786 * lisp.h (maybe_continuable_error_with_frob):
9787 Fix up section comments.
9788 Add new types for char to indicate usage.
9789 Delete symbols auto-generated from general-slots.h.
9790 Add prototypes for structured error functions.
9791 Add long comments describing looping macros and change interface
9792 so that lvalues are automatically declared.
9793 Add NO_DECLARE macro in case callers want to declare lvalues
9796 * lread.c (read_syntax_error):
9797 * lread.c (continuable_read_syntax_error):
9798 * lread.c (read_structure):
9799 * lread.c (sequence_reader):
9800 * lread.c (read_list_conser):
9801 * lread.c (read_compiled_function):
9802 Rename syntax_error and continuable_syntax_error to avoid clash
9803 with same-named structured error functions.
9805 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9806 * menubar-msw.c (populate_menu_add_item):
9807 * menubar-msw.c (populate_or_checksum_helper):
9812 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9813 Mule-ize whole file.
9815 * menubar.c (Fnormalize_menu_item_name): Add optimization.
9817 * mule-charset.c (Fmake_charset):
9818 * mule-wnnfns.c (Fwnn_set_param):
9821 * ntproc.c (create_child):
9822 * ntproc.c (Fwin32_set_current_locale):
9823 Add comments portending doom.
9826 * objects-msw.c (old_font_enum_callback_2):
9827 * objects-msw.c (font_enum_callback_1):
9828 * objects-msw.c (mswindows_enumerate_fonts):
9832 * objects-x.c (allocate_nearest_color):
9833 * objects-x.c (x_parse_nearest_color):
9834 * objects-x.c (x_initialize_color_instance):
9835 * objects-x.c (x_print_color_instance):
9836 * objects-x.c (x_finalize_color_instance):
9837 * objects-x.c (x_valid_color_name_p):
9838 * objects-x.c (x_initialize_font_instance):
9839 * objects-x.c (x_print_font_instance):
9840 * objects-x.c (valid_x_font_name_p):
9841 * objects-x.c (truename_via_FONT_prop):
9842 * objects-x.c (truename_via_random_props):
9843 * objects-x.c (truename_via_XListFonts):
9844 * objects-x.c (x_font_truename):
9845 * objects-x.c (x_font_instance_truename):
9846 * objects-x.c (x_font_instance_properties):
9847 * objects-x.c (x_list_fonts):
9848 * objects-x.c (x_find_charset_font):
9849 Mule-ize entire file.
9856 * print.c (std_handle_out_external):
9857 * print.c (debug_print_no_newline):
9858 * print.c (syms_of_print):
9859 Output to all debugger kinds in debug-print.
9860 Fix console-output code under MSWin to actually work.
9862 * process-nt.c (send_signal):
9863 * process-nt.c (nt_create_process):
9864 Use newer Unicode macros.
9866 * process-unix.c (unix_create_process):
9867 * process-unix.c (unix_canonicalize_host_name):
9868 * process-unix.c (unix_open_network_stream):
9874 * search.c (syms_of_search):
9877 * select-msw.c (mswindows_destroy_selection):
9880 * select-x.c (symbol_to_x_atom):
9883 * select.c (syms_of_select):
9886 * sound.c (Fplay_sound_file):
9890 * specifier.c (decode_specifier_type):
9891 * specifier.c (Fvalid_specifier_locale_type_p):
9892 * specifier.c (check_valid_locale_or_locale_type):
9893 * specifier.c (decode_locale):
9894 * specifier.c (decode_locale_type):
9895 * specifier.c (decode_locale_list):
9896 * specifier.c (check_valid_domain):
9897 * specifier.c (decode_specifier_tag_set):
9898 * specifier.c (Fcanonicalize_tag_set):
9899 * specifier.c (Fdefine_specifier_tag):
9900 * specifier.c (Fspecifier_tag_predicate):
9901 * specifier.c (check_valid_inst_list):
9902 * specifier.c (check_valid_spec_list):
9903 * specifier.c (decode_how_to_add_specification):
9904 * specifier.c (check_modifiable_specifier):
9905 * specifier.c (specifier_add_spec):
9906 * specifier.c (boolean_validate):
9907 * specifier.c (display_table_validate):
9910 * specifier.c (syms_of_specifier):
9911 Move some symbols to general-slots.h.
9915 * symbols.c (Fmapatoms):
9916 * symbols.c (Fapropos_internal):
9919 * symbols.c (set_default_buffer_slot_variable):
9920 * symbols.c (set_default_console_slot_variable):
9923 * symbols.c (defsymbol_massage_name_1):
9924 * symbols.c (defkeyword_massage_name):
9925 * symbols.c (deferror_1):
9926 * symbols.c (deferror):
9927 * symbols.c (deferror_massage_name_and_message):
9929 * symeval.h (DEFSYMBOL):
9930 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9932 * symbols.c (syms_of_symbols):
9936 * symsinit.h (init_win32): New.
9937 Also new is syms_of_dialog_mswindows.
9940 Add new Unicode macros, missing Cygwin wide-char functions,
9941 convenience conversion macros for Qmswindows_tstr, macros for
9942 encapsulating required MSWin <-> Cygwin filename conversions,
9943 prototype for dynamically-extracted (not in NT 3.51) functions.
9948 * tooltalk.c (Fadd_tooltalk_message_arg):
9949 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9950 * tooltalk.c (Fadd_tooltalk_pattern_arg):
9953 * tooltalk.c (syms_of_tooltalk):
9957 * unexnt.c (unexec):
9958 Fix up headers, declaration of unexec() to be more standard.
9960 2000-07-20 Martin Buchholz <martin@xemacs.org>
9962 * offix.h: Revert change to guard macros - they're used in offix.c!
9964 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9966 * lisp.h: Defsubred Fdelete.
9968 * console-msw.h: (msprinter_default_printer): Added.
9970 * console-msw.c (msprinter_canonicalize_console_connection):
9971 (msprinter_canonicalize_device_connection): Added.
9973 * device-msw.c (msprinter_default_printer):
9974 (Fmswingows_get_default_printer):
9975 (signal_enum_priner_error):
9976 (Fmswingows_printer_list): Added.
9978 2000-07-19 Martin Buchholz <martin@xemacs.org>
9980 * XEmacs 21.2.35 is released.
9982 2000-07-19 Martin Buchholz <martin@xemacs.org>
9984 * select-x.c (x_handle_selection_request):
9985 Text selected in xemacs and pasted into xterm failed to appear.
9986 Spelling fixes and cosmetic changes.
9988 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9990 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9991 XEmacs frame (fix for doubling chars in dialog boxes).
9993 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9995 * select.c (select_convert_in, select_convert_out):
9996 Don't call intern() every time.
9998 * select.c (Qselect_convert_in, Qselect_convert_out): New.
9999 * select.c (vars_of_select): Initialise them.
10001 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10003 * select.c (selection-coercible-types): New.
10005 * select.c (own-selection-internal):
10006 * select.c (get-selection-internal):
10007 MULE bug fix - these should default to COMPOUND_TEXT and not
10008 STRING for MULE. I think.
10010 * select.c (select_convert_out): Use selection-coercible-types
10011 to find types that we can attempt to perform coercions on.
10013 2000-07-18 Martin Buchholz <martin@xemacs.org>
10017 Add coding: cookie to identify encoding.
10019 * mule-canna.c (CANNA_mode_keys): make static.
10020 Use proper prototypes, even for functions of no arguments.
10021 Remove external prototype for Fding().
10023 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10025 * select.c (syms_of_select): Add missing DEFSUBR.
10027 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10029 * select.c (get_selection_internal, own_selection_internal):
10030 Make the type default to STRING, rather than placing a nil type
10031 into Vselection_alist.
10033 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10035 * gpmevent.c (tty_selection_exists_p):
10036 * gpmevent.c (tty_own_selection):
10037 Updated parameter lists.
10039 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10041 * select.h (selection-alist): Removed declaration.
10043 * select.h (get_local_selection):
10044 * select.c (get_local_selection):
10047 * select.h (convert_selection): Removed declaration.
10048 * select.c (convert_selection): Removed.
10049 This function belongs in Lisp.
10051 * select.h (select_convert_in): Declare.
10052 * select.h (select_convert_out): Declare.
10053 * select.c (select_convert_in): New.
10054 * select.c (select_convert_out): New.
10055 New conversion functions for other files to call.
10057 * select.h (select_notify_buffer_kill): Declare.
10058 * select.c (select_notify_buffer_kill): New.
10059 New functions that get called from kill-buffer.
10061 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10062 X-specific lisp code.
10064 * select.h: Declare some of the lisp-visible functions for
10067 * select.c (clean_local_selection_data): Removed. This was
10068 a disgusting function, and previously should have been in
10069 select-x.c in any case. The functionality is now provided
10070 in select-convert-from-integer (select.el).
10072 * select.c (available-selection-types): Fixed stupidity where
10073 INTEGER and ATOM got added twice. Also add STRING when we see an
10076 * select.c (get-selection-internal): Removed symbol stripping. No
10077 longer causes conversion when data comes from the internal cache.
10079 * select.c (syms_of_select): Added new functions.
10081 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10082 error checking - previously this called abort!
10084 * select-x.c (x_own_selection): Changed comment.
10086 * select-x.c (x_handle_selection_request): Use select_convert_out.
10087 Don't mess with selection-alist; it's an internal variable of select.c.
10089 * select-x.c (x_get_foreign_selection): Use select_convert_in.
10091 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10092 rather than messing with selection-alist.
10094 * select-msw.c (mswindows_get_foreign_selection):
10095 Use TO_INTERNAL_FORMAT rather than hacking.
10097 2000-07-14 Martin Buchholz <martin@xemacs.org>
10099 * process-unix.c (unix_open_multicast_group):
10100 (unix_open_multicast_group): Remove useless casts.
10102 2000-07-13 Martin Buchholz <martin@xemacs.org>
10104 * sound.c (Fplay_sound): Fix `unused variable' warning.
10106 * emacs.c (main): Use correct type for _environ on SCO5.
10108 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10110 * console.h (own_selection_method):
10111 * console.h (selection_exists_p_method):
10112 * console.h (available_selection_types_method): New.
10113 * console.h (register_selection_data_type_method): New.
10114 * console.h (selection_data_type_name): New.
10116 * console-msw.h (mswindows_destroy_selection): Declare it. New
10117 function & alist to track GlobalAlloc()'d handles that need
10118 releasing when the clipboard data gets replaced or emptied.
10120 * event-msw.c (mswindows_wnd_proc): Call it.
10122 * lisp.h, general.c (Qappend): New symbol representing a
10125 * select.c (own-selection-internal):
10126 * select.c (selection-exists-p):
10127 * select.c (available-selection-types): New.
10128 * select.c (register-selection-data-type): New.
10129 * select.c (selection-data-type-name): New. New functions to deal
10130 with device-specific selection data formats.
10131 * select.c (selection-converter-out-alist): Renamed.
10132 * select.c (selection-converter-in-alist): New.
10133 * select.c (selection-appender-alist): New. Added new alists.
10134 * select.c (syms_of_select, vars_of_select): Added new symbols &
10136 * select.c (get_local_selection): Split.
10137 * select.c: Removed spurious type checking - selections may now be
10138 of any type, not just strings.
10139 * select.c (own-selection-internal):
10141 * select.h, select.c (convert_selection): New. Created
10142 convert_selection() function based on get_local_selection().
10143 * select.h, select.c (QCF_*): New symbols representing mswindows
10145 * select.h, select.c (Qreplace_all, Qreplace_existing): New
10146 symbols representing `how-to-add' modes.
10148 * select-msw.c (x_sym_p): New.
10149 * select-msw.c (symbol_to_ms_cf): New.
10150 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10151 symbols & clipboard formats. Can also handle string names.
10152 * select-msw.c (mswindows_own_selection):
10153 * select-msw.c (mswindows_selection_exists_p):
10154 Added `data-type' parameter. Use it.
10155 * select-msw.c (mswindows_available_selection_types): New.
10156 * select-msw.c (mswindows_register_selection_data_type): New.
10157 * select-msw.c (mswindows_selection_data_type_name): New.
10158 * select-msw.c (mswindows_own_selection):
10159 * select-msw.c (mswindows_get_foreign_selection):
10160 * select-msw.c (mswindows_selection_exists_p): Rewrote.
10161 * select-msw.c (console_create_select_mswindows): Added new methods.
10162 * select-msw.c (mswindows_destroy_selection): New.
10163 * select-msw.c (Vhandle_alist): New list.
10164 * select-msw.c (mswindows_own_selection):
10166 * select-x.c (x_own_selection):
10167 * select-x.c (x_selection_exists_p):
10168 * select-x.c: Added some comments about maybe using new
10170 * select-x.c (x_own_selection):
10172 * specifier.c: Remove definition of Qappend (now in general.c)
10173 * specifier.c (syms_of_specifier): Remove Qappend.
10175 2000-07-12 Martin Buchholz <martin@xemacs.org>
10177 * config.h.in: Add socklen_t.
10179 * s/decosf4-0.h: No special compiler flags needed or desired.
10180 In particular, undefine _BSD for DEC OSF 4.0.
10182 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10184 * redisplay-msw.c (msprinter_frame_output_end): Added.
10185 (console_type_create_redisplay_mswindows): Referred the above.
10187 * frame.c (setup_frame_without_minibuffer): Do not create a
10188 default minibuffer frame on a printer device.
10190 * frame-msw.c (apply_dc_geometry): Added.
10191 (msprinter_start_page):
10192 (msprinter_init_frame_3):
10193 (msprinter_eject_page): Use it.
10195 * console-msw.h (struct msprinter_frame): Added pix_left and top,
10196 and removed residual duplex and orientation properties.
10198 2000-07-11 Martin Buchholz <martin@xemacs.org>
10200 * eval.c (function_argcount): Work around a DEC CC compiler bug.
10202 * unexalpha.c: Remove system prototypes from C sources!
10204 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
10206 * eval.c: Remove references to M-x edit-options in DEFUNs for
10207 `defvar' and `defconst'.
10209 2000-07-09 Martin Buchholz <martin@xemacs.org>
10211 * config.h.in: Remove SMART_INCLUDE hackery.
10213 PostgreSQL hacking:
10214 * config.h.in: Don't use SMART_INCLUDE.
10216 * postgresql.h: Include libpq-fe.h here. Fix typo.
10217 * inline.c: Simply #include "postgresql.h"
10219 - Don't use SMART_INCLUDE
10220 - Use simply "const".
10221 - Use standard doc string conventions.
10222 - Use correct type for result of PQstatus.
10224 2000-07-09 Martin Buchholz <martin@xemacs.org>
10226 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10228 C++ compilation changes.
10229 * config.h.in (EXTERN_C): Define.
10230 * config.h.in (not): This is also a C++ keyword.
10231 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10232 * cm.c: Use EXTERN_C.
10233 * redisplay-tty.c: Use EXTERN_C.
10234 * sysdep.c: Use EXTERN_C. Remove Gould support.
10236 2000-07-09 Martin Buchholz <martin@xemacs.org>
10238 * general.c: Remove duplicate definition for Qfunction.
10240 2000-07-08 Ben Wing <ben@xemacs.org>
10242 * device-msw.c (msprinter_init_device):
10243 * device-msw.c (sync_printer_with_devmode):
10244 * device-msw.c (handle_devmode_changes):
10245 * device-msw.c (print_dialog_worker):
10246 * device-msw.c (Fmsprinter_apply_settings):
10247 * device-msw.c (hash_devmode):
10248 * device-msw.c (Fmsprinter_settings_despecialize):
10249 use Qmswindows_tstr, not Qctext.
10251 * vm-limit.c (check_memory_limits):
10252 avoid infinite loop printing warning messages.
10254 2000-07-05 Craig Lanning <lanning@scra.org>
10256 * Makefile.in.in: Add support for including the Windows resources
10257 when building with the cygwin and mingw targets.
10259 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10260 not set or not correct.
10261 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10262 (init_initial_directory): Don't try to use $PWD on the
10263 WIN32_NATIVE target.
10266 [[Add -mwindows to eliminate console window.]] not required --ben
10267 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10268 (MAIL_USE_POP): removed; now handled by configure.
10270 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10271 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10272 (HAVE_NATIVE_SOUND): removed; now handled by configure.
10273 (MAIL_USE_POP): removed; now handled by configure.
10274 (ENCAPSULATE_STAT): from Dan Holmsand, added.
10275 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10276 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10278 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10279 up from <winsock.h> via systime.h.
10280 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10281 (getpagesize): from Dan Holmsand, added.
10282 Added #endif which was left dangling by Ben's mega patch; added
10283 comment to help prevent this in the future.
10285 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10287 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10289 * console-msw.h (struct mswindows_device): Removed unnecessary
10290 cached device geometry values.
10291 Added update_tick and an accessor macro.
10292 (Lisp_Devmode): Added lrecord declaration.
10293 (struct msprinter_device): Contain devmode as a Lisp object.
10294 Added mswindows_get_selected_frame_hwnd();
10296 * console.h (struct console_methods): Indentation nitpicking.
10298 * device-msw.c (mswindows_init_device): Do not initialize geometry
10299 cache. Initialize update tick.
10300 (mswindows_device_system_metrics): Ask the device for its geometry.
10301 (global_free_2_maybe):
10302 (devmode_to_hglobal):
10303 (handle_printer_changes):
10304 (ensure_not_printing):
10305 (print_dialog_worker):
10306 (Fmsprinter_print_setup_dialog):
10307 (Fmsprinter_print_dialog):
10308 (plist_get_margin):
10309 (plist_set_margin):
10310 (Fmsprinter_page_setup_dialog): Added functions.
10311 (sync_printer_with_devmode):
10312 (handle_devmode_changes):
10313 (Fmsprinter_get_settings):
10314 (Fmsprinter_select_settings):
10315 (Fmsprinter_apply_settings):
10316 (allocate_devmode):
10317 (Fmsprinter_settings_copy):
10318 (Fmsprinter_settings_despecialize):
10320 (finalize_devmode):
10322 (hash_devmode): Added functions
10323 (syms_of_device_mswindows): Init devmode lrecord class.
10325 * device.h: Added an exfun for find-device.
10327 * event-msw.c (mswindows_wnd_proc): Do not update the cached
10328 geometry; although, recreate the device compatible DC.
10330 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10331 (msprinter_init_frame_3):
10332 (msprinter_frame_property):
10333 (msprinter_internal_frame_property_p):
10334 (msprinter_frame_properties):
10335 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10336 print job properties (will move to device settings).
10338 * lisp.h: Added symbols.
10340 * general.c (syms_of_general): Declared them.
10342 * hash.c (string_hash): Added.
10344 * lrecord.h (lrecord_type): Added devmode lrecord type.
10346 2000-07-02 Mike Sperber <mike@xemacs.org>
10348 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10351 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
10353 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10356 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
10358 * data.c (Fstring_to_number): Don't recognize floating point if
10361 2000-06-22 Martin Buchholz <martin@xemacs.org>
10363 * glyphs-widget.c (tab_control_query_geometry):
10364 (widget_query_geometry):
10365 (button_query_geometry):
10366 * glyphs.c (text_query_geometry):
10367 Enforce type correctness.
10369 2000-06-18 Martin Buchholz <martin@xemacs.org>
10371 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10372 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10374 2000-06-17 Martin Buchholz <martin@xemacs.org>
10376 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10377 conflicts with gcc's fixincluded version of FOO.h.
10379 * glyphs.h (image_instance_geometry): Remove trailing `,'
10381 2000-06-08 Mike Alexander <mta@arbortext.com>
10383 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10384 (shove_thread): Don't write the same output twice
10385 (make_ntpipe_output_stream): Increase priority of shove thread
10386 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10388 (ntpipe_shove_closer): Don't delete the pipe until we're done with
10391 2000-06-12 Ben Wing <ben@xemacs.org>
10393 * s\mingw32.h (sigset):
10394 * s\windowsnt.h (sigset):
10395 rename msw_ to mswindows_ for consistency with general convention.
10397 2000-06-12 Ben Wing <ben@xemacs.org>
10400 * console-msw.c (mswindows_get_console_hwnd):
10401 * console-msw.c (mswindows_ensure_console_allocated):
10402 * console-msw.c (mswindows_hide_console):
10403 * console-msw.c (mswindows_show_console):
10404 * console-msw.c (mswindows_ensure_console_buffered):
10405 * console-msw.c (mswindows_output_console_string):
10406 * console-msw.c (mswindows_windows9x_p):
10408 * device-msw.c (mswindows_get_workspace_coords):
10409 * device-msw.c (mswindows_device_system_metrics):
10410 * dialog-msw.c (mswindows_popup_dialog_box):
10411 * event-msw.c (mswindows_wnd_proc):
10412 * frame-msw.c (mswindows_size_frame_internal):
10413 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10414 * menubar-msw.c (displayable_menu_item):
10415 * menubar-msw.c (mswindows_char_is_accelerator):
10417 * nt.c (mswindows_sigset):
10418 * nt.c (mswindows_sigrelse):
10419 * nt.c (mswindows_sigpause):
10420 * nt.c (mswindows_raise):
10421 * nt.c (timer_proc):
10423 * ntproc.c (find_child_console):
10424 * ntproc.c (sys_kill):
10426 * print.c (std_handle_out_external):
10427 * process-nt.c (find_child_console):
10428 * process-nt.c (send_signal_the_95_way):
10429 * process-nt.c (ensure_console_window_exists):
10430 * process-nt.c (nt_create_process):
10432 rename msw_ to mswindows_ for consistency with general convention.
10436 include nt.h, not syswindows.h.
10438 * nt.c (mswindows_fstat):
10439 * nt.c (mswindows_stat):
10440 prefix mswindows_ instead of attempting to directly override the
10441 library functions. fix declarations.
10444 include syswindows.h. move some sysdep.h stuff here.
10447 include syswindows.h, not <windows.h>.
10455 * sysdep.c (sys_fstat):
10456 * sysdep.c (sys_stat):
10457 call mswindows versions when appropriate.
10460 move mswin decls to nt.h.
10463 add long comment describing appropriate use of the various windows
10466 2000-06-11 Ben Wing <ben@xemacs.org>
10468 * device-x.c: Correct doc string for sixth arg of x-get-resource.
10470 2000-06-10 Ben Wing <ben@xemacs.org>
10472 * Makefile.in.in (release):
10473 Correction to make sure xemacs.exe always dumped when correct.
10477 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10479 * buffer.c (set_buffer_internal):
10480 [[[[2]]]]: Remove HAVE_FEP code.
10482 * buffer.c (init_initial_directory):
10486 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10490 * callproc.c (call_process_cleanup):
10491 * callproc.c (Fold_call_process_internal):
10492 * callproc.c (child_setup):
10493 * callproc.c (getenv_internal):
10494 * callproc.c (init_callproc):
10495 * callproc.c (vars_of_callproc):
10496 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10497 __CYGWIN32__ -> CYGWIN.
10498 DOS_NT -> WIN32_NATIVE.
10499 Remove MSDOS support/references, converting to WIN32_NATIVE
10501 __MINGW32__ -> MINGW.
10502 Fix windows.h includes.
10503 Remove bogus HAVE_NTGUI.
10509 mswindows_message_outputted added for use in allowing startup
10510 errors on the console to be seen.
10512 * console-msw.c (msw_ensure_console_allocated):
10513 * console-msw.c (msw_output_console_string):
10514 * console-msw.c (DHEADER):
10515 * console-msw.c (DOPAQUE_DATA):
10516 * console-msw.c (DEVENT):
10517 * console-msw.c (DCONS):
10518 * console-msw.c (DCONSCDR):
10519 * console-msw.c (DSTRING):
10520 * console-msw.c (DVECTOR):
10521 * console-msw.c (DSYMBOL):
10522 * console-msw.c (DSYMNAME):
10525 * console-stream.c (stream_init_console):
10526 Fix text/binary problems.
10529 * device-msw.c (mswindows_finish_init_device):
10530 * device-msw.c (mswindows_delete_device):
10533 * device.c (handle_asynch_device_change):
10537 * dgif_lib.c (DGifOpenFileName):
10538 * dgif_lib.c (DGifOpenFileHandle):
10539 * dgif_lib.c (DGifGetLine):
10540 * dgif_lib.c (DGifGetPixel):
10541 Added config.h/lisp.h, fix up includes.
10548 * dired.c (file_name_completion):
10549 * dired.c (Ffile_attributes):
10550 * dired.c (syms_of_dired):
10554 * dumper.c (pdump_file_unmap):
10555 * dumper.c (pdump_load):
10559 * editfns.c (Ftemp_directory):
10560 * editfns.c (user_login_name):
10561 * editfns.c (Fuser_real_login_name):
10562 * editfns.c (get_home_directory):
10565 * elhash.c (finish_marking_weak_hash_tables):
10566 [[[[5]]]]: Fix GCC warnings.
10569 * emacs.c (mswindows_handle_hardware_exceptions):
10570 * emacs.c (make_arg_list_1):
10571 * emacs.c (main_1):
10572 * emacs.c (Fkill_emacs):
10573 * emacs.c (Fdump_emacs):
10575 Fix problems with nested crashes, add long comment.
10577 * event-Xt.c (init_event_Xt_late):
10581 * event-msw.c (mswindows_dde_callback):
10582 * event-msw.c (mswindows_handle_sticky_modifiers):
10583 * event-msw.c (mswindows_wnd_proc):
10587 * events.c (character_to_event):
10591 * fileio.c (Ffile_name_directory):
10592 * fileio.c (Ffile_name_nondirectory):
10593 * fileio.c (directory_file_name):
10594 * fileio.c (Fexpand_file_name):
10595 * fileio.c (Fsubstitute_in_file_name):
10596 * fileio.c (Ffile_name_absolute_p):
10597 * fileio.c (check_executable):
10598 * fileio.c (Ffile_readable_p):
10599 * fileio.c (Ffile_accessible_directory_p):
10600 * fileio.c (Ffile_modes):
10601 * fileio.c (Funix_sync):
10602 * fileio.c (vars_of_fileio):
10605 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10607 Expand getdefdir defn.
10608 Fix bogus rename() comment.
10610 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
10611 to use standard XEmacs include files, e.g. sysfile.h, rather
10612 than system-specific includes.
10618 * frame.c (vars_of_frame):
10622 * getloadavg.c (getloadavg):
10624 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
10625 (We don't use it elsewhere in the code; just add a comment.)
10632 * glyphs-msw.c (mswindows_resource_instantiate):
10635 * glyphs-x.c (x_native_layout_instantiate):
10638 * gui-msw.c (Fmswindows_shell_execute):
10647 * lread.c (locate_file_in_directory_mapper):
10654 * mem-limits.h (get_lim_data):
10666 * nt.c (rva_to_section):
10667 * nt.c (mswindows_executable_type):
10669 Fix closedir() defn.
10672 [[[[8]]]]: *_OK defs moved to sysfile.h.
10681 * print.c (std_handle_out_external):
10685 * process-nt.c (nt_create_process):
10687 try to fix process quoting somewhat.
10689 * process-unix.c (unix_create_process):
10693 * process.c (vars_of_process):
10700 * realpath.c (xrealpath):
10703 * redisplay-tty.c (init_tty_for_redisplay):
10713 * sheap.c (more_static_core):
10714 * sheap.c (report_sheap_usage):
10718 * signal.c (alarm_signal):
10725 * strftime.c (zone_name):
10728 * symsinit.h (init_sunpro):
10732 commctrl.h not in Cygwin b20.1.
10735 * sysdep.c (endif):
10736 * sysdep.c (sys_subshell):
10737 * sysdep.c (init_baud_rate):
10738 * sysdep.c (emacs_get_tty):
10739 * sysdep.c (emacs_set_tty):
10740 * sysdep.c (tty_init_sys_modes_on_device):
10741 * sysdep.c (init_system_name):
10742 * sysdep.c (sys_open):
10743 * sysdep.c (interruptible_open):
10744 * sysdep.c (sys_fopen):
10745 * sysdep.c (sys_mkdir):
10746 * sysdep.c (sys_rename):
10747 * sysdep.c (get_process_times_1):
10754 * sysdir.h (DIRENTRY_NONEMPTY):
10757 * sysdll.c (dll_init):
10763 added text/binary defs.
10769 * sysproc.h (EDESTADDRREQ):
10770 * sysproc.h (poll_fds_for_input):
10787 Always define WIN32_LEAN_AND_MEAN.
10789 * unexcw.c (unexec):
10793 * unexec.c (copy_text_and_data):
10794 * unexec.c (adjust_lnnoptrs):
10798 * unexnt.c (_start):
10801 2000-06-07 Ben Wing <ben@xemacs.org>
10803 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
10804 was used only as a model. We've long since extracted any useful
10805 logic or code out of this. (I just did an exhaustive search.)
10807 * s\msdos.h: Removed.
10809 * s\windows95.h: Removed.
10811 2000-06-10 Ben Wing <ben@xemacs.org>
10815 Don't use extern with fun defs.
10819 Remove nt\inc include.
10820 Remove getdisk, getdefdir. (The former is unused, the latter
10821 expanded in fileio.h.)
10824 * s\windowsnt.h (WIN32_NATIVE):
10825 * s\windowsnt.h (HAVE_STRCASECMP):
10827 Add long comment about preprocessor changes.
10828 Remove getdisk, getdefdir. (The former is unused, the latter
10829 expanded in fileio.h.)
10831 2000-06-10 Ben Wing <ben@xemacs.org>
10840 Remove bogus/unused NO_SOCK_SIGIO.
10842 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
10844 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10847 2000-06-04 Mike Sperber <mike@xemacs.org>
10849 * casetab.c (set_case_table): For `set-standard-case-table',
10850 actually deposit the new case tables where the rest of XEmacs can
10853 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
10855 * data.c (Faset): Don't cast XCHAR() to unsigned char.
10857 2000-06-05 Ben Wing <ben@xemacs.org>
10859 * callproc.c (child_setup): Don't do close_load_descs() under
10860 MS Windows. Put in a comment explaining why.
10862 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
10864 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10865 Toolkit shell" which breaks `kill-compilation' on Windows NT
10866 native, retaining STDERR handling improvements.
10868 2000-06-01 Andreas Jaeger <aj@suse.de>
10870 * s/s390.h: Support for S390, based on a patch by Martin
10871 Schwidefsky <schwidefsky@de.ibm.com>.
10873 2000-05-30 Andy Piper <andy@xemacs.org>
10875 * window.c (allocate_window):
10876 (make_dummy_parent):
10877 (Fset_window_configuration): use new hashtable type.
10879 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10880 (struct image_instantiator_methods):
10881 (struct Lisp_Image_Instance): make instance geometry signed.
10883 * glyphs.c (instantiate_image_instantiator):
10884 (image_instance_query_geometry):
10885 (image_instance_layout):
10886 (image_instance_layout):
10887 (query_string_geometry):
10888 (text_query_geometry):
10889 (image_instantiate):
10890 (image_instantiate):
10891 (cache_subwindow_instance_in_frame_maybe):
10892 (subwindow_query_geometry): make instance geometry signed.
10894 * glyphs-widget.c (widget_query_geometry):
10896 (button_query_geometry):
10897 (tree_view_query_geometry):
10898 (tab_control_query_geometry):
10899 (layout_query_geometry):
10901 (native_layout_layout): make instance geometry signed.
10903 2000-05-29 Olivier Galibert <galibert@pobox.com>
10905 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10908 * general.c (syms_of_general): Add Qfull_assoc symbol.
10910 * data.c (finish_marking_weak_lists): Mark full-assoc lists
10912 (decode_weak_list_type): Decode full-assoc type.
10913 (encode_weak_list_type): Encode full-assoc type.
10914 (Fmake_weak_list): Update doc string.
10916 2000-05-30 Andy Piper <andy@xemacs.org>
10918 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10920 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10921 (decode_hash_table_weakness): ditto.
10922 (Fhash_table_weakness): ditto.
10923 (Fhash_table_type): ditto.
10924 (finish_marking_weak_hash_tables): ditto.
10925 (hash_table_weakness_validate): ditto.
10926 (syms_of_elhash): ditto.
10928 2000-05-28 Martin Buchholz <martin@xemacs.org>
10930 * XEmacs 21.2.34 is released.
10932 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
10934 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10936 (updating_line_start_cache): Gone.
10937 (regenerate_window): Replace resetting of VERTICAL_CLIP by
10938 generic code to force a minimum of 1 line laid out in the
10941 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
10943 * glyphs.c (instantiate_image_instantiator): Check for initialized
10944 height & width no longer special cases IMAGE_NOTHING.
10945 (nothing_instantiate): Set height and width of instance.
10947 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
10949 * unexelf.c (unexec): Search for ".data" section.
10950 Initialize new_data2_offset from old_data_index.
10951 Remove redundant check for ElfW.
10953 2000-05-23 Andy Piper <andy@xemacs.org>
10955 * glyphs.c (get_image_instantiator_governing_domain): allow more
10956 specific domains as the governing domain rather than expecting an
10957 exact match. This fixes problems with layouts.
10959 2000-05-22 Andy Piper <andy@xemacs.org>
10961 * redisplay-output.c (compare_runes): check for non-images
10963 * glyphs.c (set_glyph_dirty_p): ditto.
10964 (update_glyph_cachel_data): ditto.
10966 * glyphs-widget.c (layout_post_instantiate): ditto.
10967 (layout_post_instantiate): ditto.
10969 * event-msw.c (mswindows_wnd_proc): warning removal.
10971 2000-05-12 Craig Lanning <CraigL@DyCon.com>
10973 * s\mingw32.h: Added #undef for CLASH_DETECTION.
10975 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10977 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10979 * nt.c (rva_to_section): mingw32 needs rva_to_section.
10980 (mswindows_executable_type): mingw32 now has enough headers for
10983 2000-05-20 Andy Piper <andy@xemacs.org>
10985 * console-msw.c (mswindows_output_last_error): ; -> ,
10987 2000-05-12 Andy Piper <andy@xemacs.org>
10989 * console-msw.c (FROB): compare ints with ints.
10991 2000-05-11 Andy Piper <andy@xemacs.org>
10993 * glyphs-x.c (x_finalize_image_instance): make minimal build
10996 2000-05-20 Ben Wing <ben@xemacs.org>
10999 * event-Xt.c (vars_of_event_Xt):
11000 move modifier-keys-are-sticky to event-stream.c.
11003 * event-msw.c (mswindows_enqueue_mouse_button_event):
11004 * event-msw.c (key_needs_default_processing_p):
11005 * event-msw.c (XEMSW_LCONTROL):
11006 * event-msw.c (mswindows_handle_sticky_modifiers):
11007 * event-msw.c (FROB):
11008 * event-msw.c (clear_sticky_modifiers):
11009 * event-msw.c (output_modifier_keyboard_state):
11010 * event-msw.c (output_alt_keyboard_state):
11011 * event-msw.c (mswindows_wnd_proc):
11012 * event-msw.c (mswindows_modifier_state):
11013 * event-msw.c (emacs_mswindows_handle_magic_event):
11014 implement sticky modifiers.
11017 * event-stream.c (vars_of_event_stream):
11018 move modifier-keys-are-sticky here.
11021 add CHECK_FUNCTION.
11024 implement map-range-table.
11027 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
11029 * redisplay-tty.c (reset_tty_modes):
11030 (tty_redisplay_shutdown): Adjust argument type to
11031 tty_frame_output_end.
11033 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11035 * eval.c (Fbacktrace): Don't output a line with only right
11038 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
11040 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11041 (Fpq_reset_poll): Ditto.
11043 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
11045 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11047 2000-05-16 Ben Wing <ben@xemacs.org>
11050 * buffer.c (dfc_convert_to/from_internal_format):
11051 * buffer.c (reinit_vars_of_buffer):
11052 Fix conversion functions to allow reentrancy.
11055 * console-msw.c (mswindows_output_last_error):
11056 New fun, generally useful -- output a human-readable
11057 version of GetLastError() on the console.
11060 * console-msw.h (struct mswindows_frame):
11061 Changes for DeferWindowPos. Declare mswindows_output_last_error().
11063 * console-stream.c (stream_output_begin):
11064 * console-stream.c (stream_output_end):
11065 * console-stream.c (stream_output_vertical_divider):
11066 * console-stream.c (stream_clear_region):
11067 * console-stream.c (stream_flash):
11068 * console-stream.c (console_type_create_stream):
11069 Delete blank stream methods, not needed.
11071 * console.h (struct console_methods):
11072 Split begin/end methods into window and frame.
11075 * event-msw.c (mswindows_handle_paint):
11076 * event-msw.c (output_alt_keyboard_state):
11077 * event-msw.c (mswindows_wnd_proc):
11078 * event-msw.c (vars_of_event_mswindows):
11079 Comment about problems with ignored-expose.
11080 Define mswindows-debug-events; not really implemented.
11082 * frame-msw.c (mswindows_init_frame_1):
11086 * glyphs-msw.c (begin_defer_window_pos):
11087 * glyphs-msw.c (mswindows_unmap_subwindow):
11088 * glyphs-msw.c (mswindows_map_subwindow):
11089 * glyphs-msw.c (mswindows_resize_subwindow):
11090 Use DeferWindowPos to reduce flashing when mapping/unmapping.
11092 * glyphs.c (make_image_instance_1):
11095 * gutter.c (Fredisplay_gutter_area):
11096 Use new begin/end methods.
11098 * lisp.h (Dynarr_new2):
11102 * redisplay-msw.c (mswindows_frame_output_begin):
11103 * redisplay-msw.c (mswindows_frame_output_end):
11104 * redisplay-msw.c (console_type_create_redisplay_mswindows):
11105 New begin/end methods -- handle DeferWindowPos.
11107 * redisplay-output.c (redisplay_move_cursor):
11108 * redisplay-output.c (redraw_cursor_in_window):
11109 * redisplay-output.c (redisplay_update_line):
11110 * redisplay-output.c (redisplay_output_window):
11111 New begin/end methods.
11114 * redisplay-tty.c (tty_frame_output_begin):
11115 * redisplay-tty.c (tty_frame_output_end):
11116 * redisplay-tty.c (console_type_create_redisplay_tty):
11117 New begin/end methods.
11120 * redisplay-x.c (x_window_output_begin):
11121 * redisplay-x.c (x_window_output_end):
11122 * redisplay-x.c (console_type_create_redisplay_x):
11123 New begin/end methods.
11125 * redisplay.c (redisplay_frame):
11126 * redisplay.c (Fredisplay_echo_area):
11127 New begin/end methods.
11128 use MAYBE_DEVMETH for clear_frame; it may not exist.
11130 * window.h (WINDOW_XFRAME):
11131 WINDOW_XFOO macros -- get locale and decode struct pointer.
11134 2000-05-12 Ben Wing <ben@xemacs.org>
11137 * emacs.c (ensure_no_quitting_from_now_on):
11138 * emacs.c (fatal_error_signal):
11139 * emacs.c (mswindows_handle_hardware_exceptions):
11141 * emacs.c (Fkill_emacs):
11142 * emacs.c (shut_down_emacs):
11143 * emacs.c (assert_failed):
11144 various improvements in fatal error handling.
11147 move preparing_for_armageddon to emacs.c.
11150 declare fatal_error_in_progress.
11153 * print.c (std_handle_out_external):
11154 * print.c (std_handle_out_va):
11155 * print.c (stderr_out):
11156 * print.c (stdout_out):
11157 use console under mswin when no standard output.
11158 don't do code conversion during fatal error.
11160 * scrollbar.c (Fscrollbar_page_up):
11161 * scrollbar.c (Fscrollbar_page_down):
11162 fix missing else. reindent.
11164 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
11168 * glyphs.h (GLYPH_CACHEL_DESCENT):
11169 (GLYPH_CACHEL_DESCENT):
11170 (GLYPH_CACHEL_DESCENT):
11171 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11172 used in case these are inline functions.
11173 Use more absurd values to error check.
11175 include window.h for error check functions.
11177 2000-05-11 Ben Wing <ben@xemacs.org>
11179 * cmdloop.c (Freally_early_error_handler):
11180 Display message box under windows; otherwise, message will disappear
11181 before it can be viewed.
11184 * console-msw.c (Fmswindows_message_box):
11185 * console-msw.c (FROB):
11186 * console-msw.c (syms_of_console_mswindows):
11187 Define new fun `mswindows-message-box'.
11188 #### I will merge this into `popup-dialog-box'; just give me
11192 * general.c (syms_of_general):
11193 Some new symbols used in `mswindows-message-box'.
11196 * glyphs.c (Fset_image_instance_property):
11197 put warning in this fun.
11200 * glyphs.h (GLYPH_CACHEL_WIDTH):
11201 * glyphs.h (GLYPH_CACHEL_ASCENT):
11202 * glyphs.h (GLYPH_CACHEL):
11203 * glyphs.h (GLYPH_CACHEL_GLYPH):
11204 define error-checking versions to try to catch a bug i've seen --
11205 redisplay gets in an infinite loop because the glyph width of the
11206 continuation glyph is 65535.
11209 Extern message-box stuff.
11211 * window.c (allocate_window):
11212 * window.c (make_dummy_parent):
11213 * window.c (Fset_window_configuration):
11214 Use EQUAL not EQ for subwindow caches to make them work a bit
11215 better. (Something is still very broken.)
11218 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
11220 * glyphs.c (image_instantiate): Suppress gcc warnings.
11221 (Fmake_image_instance): Fix doc string.
11222 * specifier.c (Fmake_specifier): Ditto.
11224 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
11226 * paths.h.in (PATH_LOCK): Removed.
11227 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11228 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11230 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
11232 * fns.c (Ffeaturep): Update e-mail address in doc-string.
11233 Document (featurep '(and xemacs 21.02)).
11235 2000-05-09 Ben Wing <ben@xemacs.org>
11237 * buffer.c (complex_vars_of_buffer):
11238 update modeline-format doc.
11241 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11244 timeline of all released versions of Emacs, for use in creating
11245 authorship comments and in synching up.
11247 * glyphs-widget.c (image_instantiator_buttons):
11248 * glyphs-widget.c (image_instantiator_edit_fields):
11249 * glyphs-widget.c (image_instantiator_combo_box):
11250 * glyphs-widget.c (image_instantiator_scrollbar):
11251 * glyphs-widget.c (image_instantiator_progress_guage):
11252 * glyphs-widget.c (image_instantiator_tree_view):
11253 * glyphs-widget.c (image_instantiator_tab_control):
11254 * glyphs-widget.c (image_instantiator_labels):
11255 * glyphs-widget.c (image_instantiator_layout):
11256 * glyphs-widget.c (image_instantiator_native_layout):
11257 rename decode_domain method to governing_domain.
11260 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11261 * glyphs.c (add_entry_to_device_ii_format_list):
11262 make sure we don't put an entry more than once into the list.
11263 * glyphs.c (check_instance_cache_mapper):
11264 *************************************************************
11265 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11267 *************************************************************
11268 * glyphs.c (get_image_instantiator_governing_domain):
11269 clean up, expand on new concept of governing domain.
11270 * glyphs.c (instantiate_image_instantiator):
11271 * glyphs.c (allocate_image_instance):
11272 use governing_domain instead of cache_domain in naming.
11273 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11274 * glyphs.c (make_image_instance_1):
11275 * glyphs.c (Fmake_image_instance):
11276 allow for any domain (not just device), and process the
11277 governing domain correctly. very big doc fix.
11278 * glyphs.c (Fimage_instance_domain):
11279 new primitive, to retrieve the governing domain of an image instance.
11280 * glyphs.c (image_instantiate):
11281 use new governing_domain stuff. this fixes a crash you could get
11282 by instantiating certain widget glyphs in frame locales. (should
11283 signal an error instead of crashing.)
11284 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11285 * glyphs.c (Fglyphp): clean up doc.
11286 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11287 * glyphs.c (syms_of_glyphs):
11288 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11289 * glyphs.c (image_instantiator_format_create): add some comments about
11291 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11292 for current-display-table. (Apparently Hrjove implemented in 1998 a
11293 design I wrote up in 1996, but didn't update the doc string.)
11295 * glyphs.h: clean up a doc string.
11296 * glyphs.h (governing_domain):
11297 * glyphs.h (struct image_instantiator_methods):
11298 changes for governing_domain stuff.
11301 * gutter.c (Fgutter_specifier_p):
11302 * gutter.c (Fgutter_size_specifier_p):
11303 * gutter.c (Fgutter_visible_specifier_p):
11305 * objects.c (Fcolor_specifier_p):
11306 * objects.c (Ffont_specifier_p):
11307 * objects.c (Fface_boolean_specifier_p):
11308 doc strings moved to make-*-specifier.
11310 * redisplay.c (add_disp_table_entry_runes_1):
11311 * redisplay.c (generate_fstring_runes):
11312 * redisplay.c (screen):
11313 add random comments and doc strings.
11316 * specifier.c (Fmake_specifier):
11317 major overhaul of this doc string.
11319 * specifier.c (Fvalid_specifier_domain_p):
11320 comment about the bogosity of image instances being domains.
11321 * specifier.c (decode_domain):
11322 now non-static, used in glyphs.c.
11323 * specifier.c (specifier_instance):
11324 comment about the bogosity of image instances being domains.
11325 * specifier.c (Fgeneric_specifier_p):
11326 move doc string to make-generic-specifier.
11327 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11331 * specifier.h (DOMAIN_FRAME):
11332 * specifier.h (DOMAIN_LIVE_P):
11333 * specifier.h (DOMAIN_XDEVICE):
11335 add comments about problems with these macros.
11336 prototype for decode_domain.
11339 * toolbar.c (Ftoolbar_specifier_p):
11340 move doc string to `make-toolbar-specifier'.
11342 * window.c (window_unmap_subwindows_cache_mapper):
11343 *************************************************************
11344 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11346 *************************************************************
11348 2000-05-09 Andy Piper <andy@xemacs.org>
11350 * glyphs.h: declare reset_frame_subwindow_instance_cache.
11352 * window.c (Fset_window_configuration): reset the frame subwindow
11353 cache and re-initialize the window subwindow caches.
11355 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11357 2000-05-09 Ben Wing <ben@xemacs.org>
11359 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11362 2000-04-26 Mike Woolley <mike@bulsara.com>
11364 * ntheap.c: Changed recreate_heap to limit the amount reserved
11365 for the heap to that which is actually available. Also now
11366 displays a message box (with some dignostics) in the event that
11367 it still can't start.
11369 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11371 * callproc.c (Fold_call_process_internal): GCPRO path
11373 2000-05-08 Jan Vroonhof <jan@xemacs.org>
11375 Patch by Bill Perry.
11377 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11378 back data instead of #ifdef.
11379 (Fscrollbar_page_down): ditto.
11381 2000-05-07 Ben Wing <ben@xemacs.org>
11384 Kludge for defining Qmswindows_tstr.
11387 * nt.c (open_input_file):
11388 * nt.c (open_output_file):
11389 * nt.c (rva_to_section):
11390 * nt.c (mswindows_executable_type):
11391 Move all memory-mapped-file routines here (some were in unexnt.c,
11392 which is bad because they are used by process-nt.c, and unexnt
11393 won't be around when portable dumping). Synched the above routines
11397 Removed ifdef'd out bogus code.
11398 Fixed some prototypes.
11400 * nt.h (file_data):
11401 * nt.h (OFFSET_TO_RVA):
11402 * nt.h (RVA_TO_OFFSET):
11403 * nt.h (RVA_TO_PTR):
11404 Moved the memory-mapped-file structures, macros and prototypes
11405 here, to parallel nt.c. ntheap.h should really be removed
11406 entirely, and it's a non-portable-dumper specific file.
11408 * ntheap.h (round_to_next):
11409 Moved the memory-mapped-file structures, macros and prototypes
11412 * ntproc.c (compare_env):
11413 Moved rva_to_section and mswindows_executable_type to nt.c.
11414 Moved compare_env to process-nt.c.
11415 ntproc.c will die, one day.
11417 * ntproc.c (sys_spawnve):
11418 Account for win32_ -> mswindows_.
11421 * process-nt.c (struct nt_process_data):
11422 * process-nt.c (ensure_console_window_exists):
11423 * process-nt.c (compare_env):
11424 * process-nt.c (nt_create_process):
11425 * process-nt.c (nt_kill_process_by_pid):
11426 * process-nt.c (syms_of_process_nt):
11427 * process-nt.c (vars_of_process_nt):
11428 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11429 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11430 changes). Eliminate our old `nt-quote-process-args' mechanism.
11431 Synch up nt_create_process with FSF 20.6 sys_spawnve.
11432 Move compare_env here from ntproc.c.
11434 * process.c (Fprocess_send_region):
11435 Takes an optional fourth argument, BUFFER, which should fix some
11436 problems with call-process.
11439 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11442 Move ICC_BAR_CLASSES to syscommctrl.h.
11443 Add preliminary macros for MSWindows/Mule. More to come.
11446 * unexnt.c (unexec):
11447 open_output_file moved to nt.c.
11450 2000-05-05 Andy Piper <andy@xemacs.org>
11452 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11453 instance from the frame cache also since GC may catch up too late
11454 to make frame deletion sane.
11456 2000-05-04 Andy Piper <andy@xemacs.org>
11458 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11459 (x_finalize_image_instance): ungcpro on deletion.
11461 * glyphs.c (image_instantiator_format_create): give pointers a
11462 query geometry method so that the geometry is at least set.
11464 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11465 initialize layouts if using widgets.
11467 2000-05-03 Andy Piper <andy@xemacs.org>
11469 * nt.c: remove bogus reference to sysmmsystem.h
11471 * gui-x.c (popup_selection_callback): fix no selection abort.
11473 2000-05-02 Andy Piper <andy@xemacs.org>
11475 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11476 (mswindows_widget_instantiate): ditto.
11478 * glyphs-widget.c (initialize_widget_image_instance): initialize
11479 children correctly.
11480 (widget_instantiate): cope with children and items in the same
11483 * glyphs.c (mark_image_instance): cope with children as a first
11485 (image_instance_equal): ditto.
11486 (image_instance_hash): ditto.
11487 (image_instance_changed): ditto.
11489 2000-04-30 Andy Piper <andy@xemacs.org>
11491 * glyphs.c (subwindow_query_geometry): new function. Return some
11493 (subwindow_instantiate): don't assign dimensions if none have been
11495 (image_instantiator_format_create): add subwindow_query_geometry.
11496 (print_image_instance): cope with layouts as widgets.
11498 2000-04-29 Andy Piper <andy@xemacs.org>
11500 * frame.c (delete_frame_internal): call
11501 free_frame_subwindow_instance_cache so that all subwindows are
11502 finalized before their parent.
11503 (mark_frame): remove subwindow_cachels.
11504 (Fmake_frame): remove subwindow_cachel manipulation.
11505 (allocate_frame_core): subwindow_instance_cache is a weak list.
11506 (delete_frame_internal): set subwindow_instance_cache to nil.
11508 * glyphs-msw.c (mswindows_finalize_image_instance): make double
11510 (mswindows_finalize_image_instance): use the device
11511 not the domain as the domain may have died already.
11513 * glyphs-x.c (x_finalize_image_instance): ditto.
11514 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11517 * redisplay-output.c (redisplay_unmap_subwindows): update for
11518 subwindow instance cache as a weak list.
11519 (redisplay_unmap_subwindows_maybe): ditto.
11520 (redisplay_unmap_subwindows_except_us): ditto.
11522 * glyphs.c (unmap_subwindow): error checking will check the domain
11523 so don't deal with it here. Don't use cachels anymore.
11524 (map_subwindow): ditto.
11525 (update_subwindow_cachel_data): remove old accessor names.
11526 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11527 (Fresize_subwindow): don't update cachel.
11528 (mark_subwindow_cachels):
11529 (update_subwindow_cachel_data):
11530 (add_subwindow_cachel):
11531 (get_subwindow_cachel_index):
11532 (update_subwindow_cachel):
11533 (reset_subwindow_cachels):
11534 (mark_subwindow_cachels_as_not_updated): deleted.
11535 (cache_subwindow_instance_in_frame_maybe): new function. Add a
11536 subwindow instance to the frame cache.
11537 (find_matching_subwindow): update for subwindow instance cache as
11539 (update_widget_instances): ditto.
11540 (image_instance_type_to_mask):inlined.
11541 (free_frame_subwindow_instance_cache): new function. finalize all
11542 subwindows that are instantiated.
11544 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11545 of cachel information.
11546 (IMAGE_INSTANCE_DISPLAY_X):
11547 (IMAGE_INSTANCE_DISPLAY_Y):
11548 (IMAGE_INSTANCE_DISPLAY_WIDTH):
11549 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11550 (XIMAGE_INSTANCE_DISPLAY_X):
11551 (XIMAGE_INSTANCE_DISPLAY_Y):
11552 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11553 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11554 remove subwindow_cachel structure and function references.
11555 (image_instance_type_to_mask): inline from glyphs.c
11557 * redisplay.c (redisplay_frame): remove subwindow_cachel
11560 * frame.h (struct frame): remove subwindow_cachels.
11561 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11563 * frameslots.h: add subwindow_instance_cache.
11565 * window.c (replace_window): check subwindow cache of replacement.
11566 (window_unmap_subwindows_cache_mapper):
11567 (window_unmap_subwindows): new functions. Unmap all subwindows
11568 cached on this window.
11569 (mark_window_as_deleted): unmap all subwindows.
11571 2000-04-27 Andy Piper <andy@xemacs.org>
11573 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11575 * glyphs-widget.c (widget_layout): return something.
11576 (layout_layout): return something. Fail if not initialized.
11577 (layout_query_geometry): ditto.
11578 (image_instantiator_native_layout): new function. Initialized the
11579 native layout type.
11580 (widget_instantiate): don't do layout stuff here.
11582 * glyphs.c (instantiate_image_instantiator): reorded calling or
11583 instantiate and post_instantiate with layout in between.
11584 (image_instance_layout): be more selective about deciding whether
11585 the layout has been done or not.
11587 * glyphs.h (struct image_instantiator_methods): return a value
11588 from layout_method.
11590 2000-04-26 Andy Piper <andy@xemacs.org>
11592 * glyphs.c (allocate_image_instance): make initial width and
11593 height unspecified. Set initialized to 0.
11595 * syscommctrl.h new file. Encapsulates commctrl.h.
11597 * syswindows.h new file. Encapsulates windows.h.
11599 * ntplay.c: use new syswindows.h and syscommctrl.h header.
11601 * console-msw.h: ditto.
11603 * redisplay-tty.c (tty_output_display_block): remove layout references.
11605 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11606 window handle rather than just the frame.
11608 * glyphs.c (mark_image_instance): remove layout references.
11609 (print_image_instance): ditto.
11610 (image_instance_equal): ditto.
11611 (image_instance_hash): ditto.
11612 (decode_image_instance_type): ditto.
11613 (encode_image_instance_type): ditto.
11614 (image_instantiate): ditto.
11615 (allocate_glyph): ditto.
11616 (Fimage_instance_height): ditto.
11617 (Fimage_instance_width): ditto.
11618 (update_subwindow): ditto.
11620 * redisplay-x.c (x_output_display_block): recode for layouts as
11623 * redisplay-output.c (redisplay_output_layout): recode for layouts
11625 (compare_runes): remove layout references.
11627 * redisplay-msw.c (mswindows_output_display_block): recode for
11628 layouts as widgets.
11630 * glyphs-widget.c (image_instantiator_layout): remove
11631 layout_possible_dest_types.
11632 (layout_possible_dest_types): deleted.
11634 * glyphs.h (image_instance_type): remove layout references.
11635 (struct Lisp_Image_Instance): ditto. Add initialized flag.
11636 (IMAGE_INSTANCE_INITIALIZED): new accessor.
11637 (XIMAGE_INSTANCE_INITIALIZED): ditto.
11639 2000-04-25 Andy Piper <andy@xemacs.org>
11641 * glyphs-widget.c (image_instantiator_buttons):
11642 (image_instantiator_edit_fields):
11643 (image_instantiator_combo_box):
11644 (image_instantiator_scrollbar):
11645 (image_instantiator_progress_guage):
11646 (image_instantiator_tree_view):
11647 (image_instantiator_tab_control):
11648 (image_instantiator_labels):
11649 (image_instantiator_layout): call default post_instantiate method.
11650 (widget_post_instantiate): new function. Simply lays out the
11653 * glyphs.h (struct image_instantiator_methods): add
11654 post_instantiate method.
11656 * glyphs.c (instantiate_image_instantiator): add post_instantiate
11659 2000-04-23 Andy Piper <andy@xemacs.org>
11661 * glyphs.h (struct image_instantiator_methods): add
11662 decode_domain_method.
11663 (struct Lisp_Image_Instance): remove subwindow frame - it can be
11664 derived from the domain.
11665 (IMAGE_INSTANCE_FRAME): new accessor.
11666 (XIMAGE_INSTANCE_FRAME): ditto.
11668 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11669 instead of _SUBWINDOW_FRAME.
11670 (finalize_image_instance): ditto.
11671 (Fimage_instance_foreground): ditto.
11672 (Fimage_instance_background): ditto.
11673 (image_instantiate): ditto.
11674 (update_subwindow_cachel): ditto.
11675 (update_subwindow): ditto.
11676 (unmap_subwindow): ditto.
11677 (map_subwindow): ditto
11678 (subwindow_instantiate): ditto.
11679 * glyphs-msw.c (mswindows_update_widget): ditto.
11680 (mswindows_progress_gauge_instantiate): ditto.
11681 (mswindows_tab_control_update): ditto.
11682 * glyphs-x.c (x_update_widget): ditto.
11683 (x_widget_instantiate): ditto.
11684 (x_tab_control_instantiate): ditto.
11685 (x_tab_control_update): ditto.
11686 * event-msw.c (mswindows_wnd_proc): ditto
11688 * glyphs-widget.c (image_instantiator_layout): use
11689 subwindow_decode_domain.
11690 (image_instantiator_buttons): ditto.
11691 (image_instantiator_edit_fields): ditto.
11692 (image_instantiator_combo_box): ditto.
11693 (image_instantiator_scrollbar): ditto.
11694 (image_instantiator_progress_guage): ditto.
11695 (image_instantiator_tree_view): ditto.
11696 (image_instantiator_tab_control): ditto.
11697 (image_instantiator_labels): ditto.
11698 (image_instantiator_layout): ditto.
11700 * glyphs.c: add instance error checking to many functions.
11701 (instantiate_image_instantiator): decode device from cache_domain.
11702 (image_instantiate): partially rewrite by using
11703 decode_image_instantiator_domain to determine what domain the
11704 instance needs to be cached in.
11705 (decode_image_instantiator_domain): new function. Determine what
11706 domain the image needs to be cached in.
11707 (check_window_subwindow_cache): new error checking function.
11708 (check_instance_cache_mapper): ditto.
11709 (check_image_instance_structure): ditto.
11710 (subwindow_decode_domain): new function. Encodes a window as a
11711 subwindow's cache domain.
11712 (image_instantiator_format_create): use it for text and
11715 2000-04-21 Andy Piper <andy@xemacs.org>
11717 * glyphs.c (image_instance_device): new function.
11718 (image_instance_frame): new function.
11719 (image_instance_window): new function.
11720 (image_instance_live_p): new function.
11722 * window.c (mark_window_as_deleted): reset the subwindow_instance_
11725 * glyphs.h (struct Lisp_Image_Instance): device->domain.
11726 (IMAGE_INSTANCE_DOMAIN): new accessor.
11727 (XIMAGE_INSTANCE_DOMAIN): ditto.
11729 * glyphs-x.c (x_finalize_image_instance): device->domain.
11731 * glyphs-msw.c (init_image_instance_geometry): device->domain.
11732 (mswindows_finalize_image_instance): ditto.
11734 * glyphs-eimage.c (jpeg_instantiate): device->domain.
11735 (gif_instantiate): ditto.
11736 (png_instantiate): ditto.
11737 (tiff_instantiate): ditto.
11739 * glyphs.c (instantiate_image_instantiator): use domain rather
11741 (mark_image_instance): device -> domain.
11742 (print_image_instance): ditto.
11743 (finalize_image_instance): ditto.
11744 (image_instance_equal): ditto.
11745 (allocate_image_instance): ditto.
11746 (Fcolorize_image_instance): ditto.
11747 (query_string_geometry): ditto.
11748 (image_instantiate): ditto
11749 (query_string_font): ditto.
11750 (image_instantiate): ditto.
11751 (update_subwindow): ditto.
11752 (unmap_subwindow): ditto.
11753 (map_subwindow): ditto.
11754 (subwindow_instantiate): ditto.
11756 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11757 (DOMAIN_FRAME): ditto.
11758 (DOMAIN_WINDOW): ditto.
11759 (DOMAIN_LIVE_P): ditto.
11760 (XDOMAIN_DEVICE): ditto.
11761 (XDOMAIN_FRAME): ditto.
11762 (XDOMAIN_WINDOW): ditto.
11764 * specifier.c (Fvalid_specifier_domain_p): add image instances as
11765 a valid specifier domain.
11767 2000-04-19 Andy Piper <andy@xemacs.org>
11769 * glyphs-widget.c (syms_of_glyphs_widget): remove
11770 widget-callback-current-channel.
11771 (vars_of_glyphs_widget): ditto.
11774 * gui.c (get_gui_callback): revert to previous behaviour.
11776 2000-04-18 Andy Piper <andy@xemacs.org>
11778 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11779 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11780 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11782 * glyphs.c (image_instance_equal): add margin_width.
11783 (image_instance_hash): ditto.
11785 * glyphs-widget.c (widget_instantiate): deal with margin-width.
11786 (layout_query_geometry): ditto.
11787 (layout_layout): ditto.
11788 (syms_of_glyphs_widget): add margin-width.
11789 (image_instantiator_layout): allow margin-width.
11791 * glyphs.c (update_widget_instances): make a normal function.
11792 (syms_of_glyphs): remove Qupdate_widget_instances.
11795 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11796 so that we don't corrupt ideas about the last event or
11797 command. Remove widget-callback-current-channel fiddling.
11798 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11800 2000-05-01 Martin Buchholz <martin@xemacs.org>
11802 * XEmacs 21.2.33 is released.
11804 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
11806 * make-src-depend: Allow dots in header file name.
11808 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
11810 * mule-charset.h (struct charset_lookup): Add
11811 next_allocated_1_byte_leading_byte and
11812 next_allocated_2_byte_leading_byte.
11813 * mule-charset.c: Move above two variables so that those values
11816 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
11818 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11819 when string length is zero.
11820 (find_charsets_in_emchar_string): Ditto.
11822 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
11824 * lisp.h: extern Qdialog and Qmenubar.
11826 * gui-x.c: added events.h.
11827 also fixed typo which made the file uncompilable.
11829 * general.c: Added Qmenubar and Qdialog
11831 2000-04-28 Ben Wing <ben@xemacs.org>
11833 * frame-msw.c (mswindows_init_frame_1):
11834 * frame-msw.c (mswindows_mark_frame):
11835 * event-msw.c (mswindows_enqueue_dispatch_event):
11837 * console-msw.h (struct mswindows_frame):
11838 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11839 there are now three hash tables for callbacks.
11840 mswindows_enqueue_dispatch_event is no longer static.
11842 * dialog-x.c (maybe_run_dbox_text_callback):
11843 * dialog-x.c (dbox_descriptor_to_widget_value):
11844 switch to new cons3 form for callbacks.
11846 * glyphs-msw.c (mswindows_register_gui_item):
11847 * glyphs-msw.c (mswindows_widget_instantiate):
11848 * glyphs-msw.c (add_tree_item):
11849 * glyphs-msw.c (add_tab_item):
11850 new image instance parameter, so it can be passed to callback-ex.
11851 respect :callback-ex as well as :callback.
11853 * glyphs-widget.c (VALID_GUI_KEYWORDS):
11856 * glyphs.c (print_image_instance):
11857 prettify, e.g. now prints widget type.
11860 certain funs have new image instance parameter.
11863 * gui.c (get_gui_callback):
11864 * gui.c (gui_item_add_keyval_pair):
11865 * gui.c (gui_item_init):
11866 * gui.c (gui_add_item_keywords_to_plist):
11867 * gui.c (mark_gui_item):
11868 * gui.c (gui_item_hash):
11869 * gui.c (gui_item_equal):
11870 * gui.c (copy_gui_item):
11871 * gui.c (syms_of_gui):
11872 recognize callback-ex in a number of places.
11873 also, fix the annoying "can't get out of yes-no dialog" bug.
11876 * gui.h (struct Lisp_Gui_Item):
11877 recognize callback-ex in a number of places.
11879 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11880 new parameter in button_item_to_widget_value.
11882 * glyphs-x.c (x_update_widget):
11883 * glyphs-x.c (x_button_instantiate):
11884 * glyphs-x.c (x_button_update):
11885 * glyphs-x.c (x_progress_gauge_instantiate):
11886 * glyphs-x.c (x_edit_field_instantiate):
11887 * glyphs-x.c (x_combo_box_instantiate):
11888 * glyphs-x.c (x_tab_control_instantiate):
11889 * glyphs-x.c (x_label_instantiate):
11890 new image instance parameter in various places.
11893 * event-Xt.c (enqueue_Xt_dispatch_event):
11894 this fun gets exported.
11897 * gui-msw.c (mswindows_handle_gui_wm_command):
11898 handle both :callback and :callback-ex, and generate our own
11899 event because it's one of the callback-ex arguments.
11902 * gui-x.c (popup_selection_callback):
11903 handle both :callback and :callback-ex, and generate our own
11904 event because it's one of the callback-ex arguments.
11905 * gui-x.c (button_item_to_widget_value):
11906 * gui-x.c (gui_items_to_widget_values_1):
11907 * gui-x.c (gui_item_children_to_widget_values):
11908 * gui-x.c (gui_items_to_widget_values):
11909 new image instance parameter in various places.
11911 * fns.c (Freplace_list):
11912 fix small typo in doc string.
11915 declare enqueue_Xt_dispatch_event.
11917 2000-04-28 Ben Wing <ben@xemacs.org>
11920 * buffer.c (Frecord_buffer):
11921 * buffer.c (syms_of_buffer):
11922 delete record-buffer-hook.
11925 * fns.c (Freplace_list):
11926 * fns.c (syms_of_fns):
11927 new primitive replace-list.
11930 slot for old buffer-alist.
11933 exfun replace-list.
11936 * redisplay.c (redisplay_frame):
11937 * redisplay.c (syms_of_redisplay):
11938 * redisplay.c (vars_of_redisplay):
11939 new hook buffer-list-changed-hook.
11942 2000-04-27 Ben Wing <ben@xemacs.org>
11944 * extents.h: extern in_modeline_generation.
11946 * redisplay.c (generate_formatted_string_db): set
11947 in_modeline_generation.
11949 * extents.c (extent_changed_for_redisplay): don't mark redisplay
11950 flags if in modeline generation. otherwise frame-modified-tick
11951 is ticked far too often.
11952 Declare in_modeline_generation.
11954 2000-04-26 Ben Wing <ben@xemacs.org>
11956 * emacs.c (vars_of_emacs): document quick-build "error-checking"
11958 (vars_of_emacs): add quick-build as an error-checking option.
11959 A bit kludgy, but there doesn't seem much point in creating
11960 a real var for this.
11962 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11964 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
11966 * redisplay.h (struct display_line): Add a new variable,
11969 * redisplay.c (create_text_block): Set dl->line_continuation if
11970 the line continues.
11971 (create_string_text_block): Ditto.
11972 (regenerate_window_incrementally): Use line_continuation instead
11973 of searching continuation glyph.
11974 (add_margin_runes): Call add_glyph_rune.
11975 (add_glyph_rune): Handle margin glyph.
11977 2000-04-20 Martin Buchholz <martin@xemacs.org>
11979 * filelock.c (fill_in_lock_file_name):
11981 Check for IS_ANY_SEP instead of '/'.
11983 Avoid generating gratuitous garbage. Call user_login_name() directly.
11984 Never check errno without first seeing that system call failed.
11985 (unlock_file): Add GCPRO.
11986 (Flock_buffer): Fix docstring.
11987 (Ffile_locked_p): Fix docstring. Add GCPRO.
11989 2000-04-19 Martin Buchholz <martin@xemacs.org>
11991 * sysdep.c (get_pty_max_bytes):
11992 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11993 strings longer than 252 bytes.
11995 * md5.c: Unconditionally include ANSI header <limits.h>
11997 * glyphs-x.c (convert_EImage_to_XImage):
11998 * lisp-union.h (union Lisp_Object):
11999 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12001 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
12003 * filelock.c (current_lock_owner): Remove unused variable o, p.
12005 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
12007 * callint.c: Remove multiply defined symbol Qlet
12008 (syms_of_callint): ditto.
12010 2000-04-14 Andy Piper <andy@xemacs.org>
12012 * general.c (syms_of_general): add last-command, this-command, let
12015 * lisp.h: declare various symbols.
12017 * glyphs.h: declare Qwidget_callback_current_channel;
12019 * glyphs-widget.c (syms_of_glyphs_widget): add
12020 Qgui_callback_current_channel.
12021 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12023 * gui-msw.c (mswindows_handle_gui_wm_command): bind
12024 widget-callback-current-channel when invoking the interactive
12025 arg. Also bind last-command and next-command when invoking the
12027 * gui-x.c (popup_selection_callback): ditto.
12029 * gui.c (get_gui_callback): massage args so that we are always
12030 calling eval. This allows us to add our own variable bindings
12033 * glyphs-x.c (x_button_instantiate): use
12034 gui_items_to_widget_values since this is GC safe.
12035 (x_progress_gauge_instantiate): ditto.
12036 (x_edit_field_instantiate): ditto.
12037 (x_label_instantiate): ditto.
12039 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12040 (emacs_Xt_event_widget_focus_out): new function
12041 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12043 (emacs_Xt_event_add_widget_actions): new function. add focus
12044 functions as actions.
12045 (init_event_Xt_late): use it.
12047 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
12049 * event-stream.c (Fdispatch_event): Doc fix.
12051 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
12053 * postgresql.c: Remove all references to PQsetenv*.
12055 * postgresql.h: Remove references to PGsetenvHandler object.
12056 * lrecord.h (lrecord_type): Ditto.
12058 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12060 * glyphs-msw.h (struct mswindows_image_instance_data): Added
12061 real_heigh and real_width members, and accessor macros for these.
12063 * glyphs-msw.c (init_image_instance_geometry): New function.
12064 (init_image_instance_from_dibitmap): Use it.
12065 (mswindows_resource_instantiate): Use it.
12066 (init_image_instance_from_xbm_inline): Use it.
12067 (mswindows_initialize_image_instance_mask): Use real bitmap
12069 (mswindows_create_resized_bitmap): Ditto.
12070 (mswindows_create_resized_mask): Ditto.
12072 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12073 and bitmap to their surface size.
12075 2000-04-11 Jan Vroonhof <jan@xemacs.org>
12077 * process-unix.c (unix_send_process): Guard against process MIA
12078 after Faccept_process_output.
12080 2000-04-11 Ben Wing <ben@xemacs.org>
12082 * eval.c (unbind_to_hairy): fix brokenness introduced by
12083 nanosecond speed improvements.
12085 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
12087 * sunplay.c (init_device): To play sounds correctly, the device
12088 apparently needs to be initialized at least once by XEmacs. Make
12091 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
12093 * redisplay.c (add_margin_runes): Add text image glyph
12096 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
12098 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12099 gcc is newer than 2.5.
12101 2000-04-06 Colin Rafferty <colin@xemacs.org>
12103 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12105 * fns.c (size_bit_vector):
12106 * alloc.c (size_vector):
12107 (make_vector_internal):
12108 (make_bit_vector_internal):
12109 (sweep_bit_vectors_1):
12110 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12112 2000-04-06 Andy Piper <andy@xemacs.org>
12114 * gmalloc.c (malloc): undo previous change.
12119 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
12121 * line-number.c (buffer_line_number): Revert to former version.
12123 2000-04-06 Andy Piper <andy@xemacs.org>
12125 * gmalloc.c (malloc): add error checking.
12130 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12131 button_item_to_widget_value arg.
12133 * glyphs-x.c (x_button_instantiate): add extra
12134 button_item_to_widget_value arg.
12135 (x_progress_gauge_instantiate): ditto.
12136 (x_edit_field_instantiate): ditto.
12137 (x_label_instantiate): ditto.
12139 * gui-x.c (gui_items_to_widget_values_1): add extra
12140 button_item_to_widget_value arg.
12141 (button_item_to_widget_value): add extra menu_item_p arg.
12143 * gui-x.h: change signature of button_item_to_widget_value.
12145 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12146 button_item_to_widget_value arg.
12148 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
12150 * buffer.h (struct buffer): auto_save_modified should be long.
12152 2000-04-05 Andy Piper <andy@xemacs.org>
12154 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12156 (button_query_geometry): give a little more room so that athena
12159 2000-04-05 Andy Piper <andy@xemacs.org>
12161 * faces.c (complex_vars_of_faces): The widget face should inherit
12162 the font of the gui-element face.
12164 2000-04-04 Andy Piper <andy@xemacs.org>
12166 * glyphs-x.c (x_button_update): new function. unconditionally
12167 update a button's state when the instance is dirty.
12168 (image_instantiator_format_create_glyphs_x): add x_button_update.
12169 (x_widget_instantiate): remove old resize cruft.
12171 2000-04-02 Andy Piper <andy@xemacs.org>
12173 * frame.c (change_frame_size_1): The introduction of gutters means
12174 that we need to allow 0 as a potential frame dimension.
12176 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
12178 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12179 image glyph if allow_cursor.
12180 (add_hscroll_rune): Don't allow cursor to border glyph.
12181 (create_text_block): Ditto.
12183 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12184 text not in buffer.
12185 (redisplay_output_layout): Call ensure_face_cachel_complete for
12189 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
12191 * redisplay.c (add_glyph_rune): Adding text image as text runes.
12193 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12196 * redisplay-tty.c (tty_output_display_block): Delete the routine
12197 for text image glyph
12198 * redisplay-x.c (x_output_display_block): ditto
12199 * redisplay-msw.c (mswindows_output_display_block): ditto
12201 2000-02-02 Mike Alexander <mta@arbortext.com>
12203 Note: Some of these were committed by accident as part of other
12206 * regex.c (regex_compile): Avoid compiler warnings.
12208 * ntproc.c (sys_spawnve): Avoid compiler warnings.
12210 * nt.h: Declare term_ntproc correctly.
12212 * nt.c: Remove incorrect declaration of get_home_directory which
12213 is declared correctly in lisp.h.
12215 * keymap.c (get_keyelt): Avoid compiler warnings.
12216 (raw_lookup_key_mapper): Avoid compiler warnings.
12218 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12220 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12222 * filemode.c (mode_string): Avoid compiler warnings.
12224 * file-coding.c (Fcoding_system_aliasee): Add return statement to
12227 * events-mod.h: Undef some things that winuser.h defines differently.
12229 * data.c (Faset): Avoid compiler warnings.
12231 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12233 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12235 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12236 Fall through to simple beep on error.
12237 Replace "extern" by real header file.
12239 * linuxplay.c: Use nativesound.h
12240 (play_sound_data): Return error code. Be less verbose on error.
12242 * sunplay.c: Use nativesound.h
12243 (play_sound_data): Return error code. Be less verbose on error.
12245 * ntplay.c: Use nativesound.h
12246 (play_sound_data): Return fake error code
12248 * sgiplay.c: Use nativesound.h
12249 (play_sound_data): Return error code
12251 * hpplay.c: Use nativesound.h, partially implement
12252 new error code. Break compilation until finished.
12253 (play_sound_data): error code.
12255 * nativesound.h (play_sound_file):
12256 (play_sound_data): Prototype in new header.
12258 2000-03-31 Andy Piper <andy@xemacs.org>
12260 * glyphs-widget.c: (button_query_geometry): new function. Adjust
12261 for toggle and radio buttons.
12262 (image_instantiator_buttons): use it.
12264 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
12266 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12267 (x_update_horizontal_scrollbar_callback): Return if no mirror was
12268 found. Scrollbar event probably belonged to some old config.
12270 2000-03-31 Andy Piper <andy@xemacs.org>
12272 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12274 (initialize_widget_image_instance): default layout to
12275 LAYOUT_HORIZONTAL rather than 0.
12276 (widget_instantiate): reverse the item list at the end rather than
12278 (layout_layout): re-code for the border text at the front of the
12279 item list rather than at the end.
12280 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12281 provided by the user.
12282 (widget_query_geometry): comment.
12284 2000-03-30 Andy Piper <andy@xemacs.org>
12286 * glyphs-widget.c (image_instantiator_layout): allow standard
12287 widget keywords in layouts.
12289 * gutter.c (output_gutter): cope with nil gutter contents.
12291 * frame.c (Fset_frame_properties): add gutter docs.
12293 2000-03-29 Andy Piper <andy@xemacs.org>
12295 * toolbar-msw.c (TBSTYLE_FLAT): add.
12296 (mswindows_output_toolbar): minor fiddling.
12298 2000-03-29 Andy Piper <andy@xemacs.org>
12300 * gutter.c (output_gutter): force gutter size recalculation if
12301 what we are trying to display won't fit.
12302 (update_gutter_geometry): new function. A per-gutter version of
12303 update_frame_gutter_geometry.
12304 (update_frame_gutter_geometry): use it.
12305 (redraw_exposed_gutter): add extra debugging output.
12307 2000-03-28 Mike Alexander <mta@arbortext.com>
12309 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12310 (pdump_file_unmap): Implement it on Windows
12311 (pdump_file_get): Save alocated handles for pdump_file_unmap
12313 2000-03-28 Andy Piper <andy@xemacs.org>
12315 * gui.c (get_gui_callback): treat Quit specially.
12317 2000-03-27 Andy Piper <andy@xemacs.org>
12319 * glyphs.c (image_instantiate): be careful to check in the same
12322 2000-03-27 Didier Verna <didier@xemacs.org>
12324 * config.h.in: define the proper SMART_INCLUDE macro.
12325 handle renaming of `foo_h_path' to `foo_h_file'.
12327 * database.c: ditto.
12331 * linuxplay.c: ditto.
12333 * terminfo.c: ditto.
12335 * tooltalk.h: ditto.
12337 2000-03-27 Andy Piper <andy@xemacs.org>
12339 * glyphs-msw.c (mswindows_update_widget): make sure the widget
12340 gets updated whenever the face might have changed.
12342 2000-03-26 Mike Alexander <mta@arbortext.com>
12344 * dumper.c (pdump_resource_free): Fix the comment.
12346 2000-03-21 Olivier Galibert <galibert@pobox.com>
12348 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12350 2000-03-22 Mike Alexander <mta@arbortext.com>
12352 * dumper.c: Include Windows headers on Windows
12353 (pdump_resource_free): Add a body to the function
12354 (pdump_load): exe_name -> exe_path and add some comments.
12356 2000-03-25 Mike Alexander <mta@arbortext.com>
12358 * gui.c (copy_gui_item_tree): Return a value in all cases
12360 2000-03-21 Didier Verna <didier@xemacs.org>
12362 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12364 (SMART_INCLUDE): new macro.
12365 (POSTGRES_INCLUDE): new macro to include postgresql headers from
12366 the proper location.
12368 * postgresql.c: use it.
12372 2000-03-24 Andy Piper <andy@xemacs.org>
12374 * gutter.c (redraw_exposed_gutters): must be "in display" when we
12377 2000-03-24 Andy Piper <andy@xemacs.org>
12379 * redisplay-output.c (compare_runes): use image_instance_changed
12380 to detect changes. Do not depend on glyphs_changed, only depend on
12382 (redisplay_output_layout): add debug messages.
12383 (compare_runes): ditto.
12385 * glyphs.h: declare new functions.
12386 (struct Lisp_Image_Instance): remove percent and associated
12389 * gui.h: declare new copying functions.
12391 * gui.c (copy_gui_item_tree): new function.
12392 (copy_gui_item): new function.
12393 (gui_item_id_hash): revert to standard hash.
12394 (gui_item_hash): ditto.
12395 (gui_item_hash_internal): deleted.
12396 (mark_gui_item): mark value.
12397 (gui_item_add_keyval_pair): add value.
12398 (gui_item_init): ditto.
12399 (gui_add_item_keywords_to_plist): ditto.
12400 (gui_item_equal): ditto.
12401 (syms_of_gui): add Q_value.
12403 * glyphs-x.c (x_progress_gauge_update): use pending items and
12404 value for setting the state.
12405 (x_update_widget): don't set items from pending here.
12407 * glyphs-widget.c (update_widget): update items here.
12408 (progress_gauge_set_property): use items for storing value. Put
12409 new value in pending items.
12411 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12412 items for new value. Convert percent -> value.
12413 (mswindows_tab_control_update): don't update items here.
12415 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12416 (update_subwindow): ditto.
12417 (image_instance_changed): new function. Compare hash values and
12418 past and present widget items.
12419 (image_instantiate): We more careful about where we instantiate
12421 (image_instantiate): add error checking.
12423 * gutter.c (syms_of_gutter): use -hook.
12425 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
12427 * console-tty.c (Fset_console_tty_input_coding_system): Use
12429 (Fset_console_tty_output_coding_system): Use Qterminal.
12430 (tty_init_console): Use Qkeyboard and Qterminal.
12432 2000-03-21 Ben Wing <ben@xemacs.org>
12434 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12435 From Mike Alexander <mta@arbortext.com>.
12437 2000-03-21 Ben Wing <ben@xemacs.org>
12439 * event-msw.c (mswindows_need_event): Horrible kludge to fix
12440 process brokenness. Proper implementation to come.
12442 Rename call-process-internal to old-call-process-internal.
12443 New impl. in process.el.
12445 2000-03-21 Martin Buchholz <martin@xemacs.org>
12447 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12449 2000-03-20 Andy Piper <andy@xemacs.org>
12451 * glyphs.c (full_list_hash): make hashes of the same elements in
12452 different orders return different values.
12454 2000-03-20 Martin Buchholz <martin@xemacs.org>
12456 * XEmacs 21.2.32 is released.
12458 2000-03-20 Martin Buchholz <martin@xemacs.org>
12460 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12461 (DFC_MALLOC_USE_CONVERTED_DATA):
12462 Add aliasing-safe casts to allow use with char* or unsigned char*
12465 * eldap.c (Fldap_open):
12466 (Fldap_search_basic):
12469 Make C++-compilable.
12470 Make sure GCPRO'ed variables are initialized.
12471 Use temp variables to avoid repeated calls to Flength.
12473 2000-03-16 Martin Buchholz <martin@xemacs.org>
12476 Make sure PATH_MAX is always defined.
12477 Include limits.h for PATH_MAX.
12478 Deprecate use of MAXPATHLEN.
12480 2000-03-10 Martin Buchholz <martin@xemacs.org>
12482 * emacs.c: Add reinit_vars_of_fileio.
12483 * symsinit.h: Add reinit_vars_of_fileio.
12484 * fileio.c (reinit_vars_of_fileio): New.
12485 * fileio.c (Fmake_temp_name):
12486 Initialize temp_name random number from microseconds to make
12487 collisions even less likely. Initialize always at process startup
12488 time. (make-temp-name) used to return the same file name twice in
12490 Random stylistic fiddling.
12493 2000-03-20 Andy Piper <andy@xemacs.org>
12495 * glyphs.c (image_instantiate): allow text glyphs to be
12496 instantiated in the minibuffer window.
12498 2000-03-19 Andy Piper <andy@xemacs.org>
12500 * glyphs.c (image_instance_hash): be careful about which items we
12503 * glyphs-widget.c (tab_control_set_property): record into pending
12504 items rather than the actual items.
12506 * glyphs-x.c (x_update_widget): use pending items to update with.
12508 * glyphs-msw.c (mswindows_tab_control_update): use pending items
12511 * glyphs.c (mark_image_instance): mark pending items.
12513 * window.c (Fset_window_configuration): record the buffer.
12514 (Fselect_window): totally revert previous change which breaks many
12517 2000-03-18 Andy Piper <andy@xemacs.org>
12519 * glyphs-msw.c (mswindows_tab_control_update): force selected
12522 * glyphs.c (image_instantiate): don't allow the minibuffer as a
12523 window domain cache, otherwise we get inconsistencies at
12524 startup. There is something fishy at startup which can lead to the
12525 minibuffer being the selected window when the gutter content is
12528 * gui.c (parse_gui_item_tree_list): add probably unnecessary
12530 (parse_gui_item_tree_children): ditto.
12531 (parse_gui_item_tree_item): ditto.
12533 * glyphs.c (Fupdate_widget_instances): return something.
12535 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
12537 * window.c (Fselect_window): Undo 2000-03-17 change.
12539 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
12541 * postgresql.c (Fpq_setenv): Remove this turkey when linking
12542 against v7.0 libraries. Insta-coredump city until the postgres
12545 2000-03-17 Andy Piper <andy@xemacs.org>
12547 * faces.c (complex_vars_of_faces): don't give the widget face an
12548 inherited background pixmap.
12550 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12553 * event-stream.c (Fdispatch_non_command_events): return something.
12555 * gutter.c (output_gutter): use widget face.
12556 (clear_gutter): ditto.
12558 * NEWS: adjust again.
12560 * window.c (Fselect_window): make sure this runs to completion to
12561 avoid oddities with Fset_window_configuration.
12562 (Fcurrent_window_configuration): in general do not save the
12563 minibuffer as the selected window.
12565 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12567 2000-03-16 Olivier Galibert <galibert@pobox.com>
12569 * emacs.c (Frunning_temacs_p): Revert previous patch.
12570 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12572 2000-03-16 Andy Piper <andy@xemacs.org>
12574 * glyphs-x.c (x_tab_control_update): if no widget values then
12577 * NEWS: update for new features.
12579 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12580 synthetic event to the native system.
12581 (reinit_vars_of_event_Xt): set force_event_pending to
12582 emacs_Xt_force_event_pending.
12584 * events.h (struct event_stream): add force_event_pending.
12586 * specifier.c (recompute_one_cached_specifier_in_window): add
12589 * redisplay.c (redisplay_frame): don't call
12590 update_frame_subwindows. Reset subwindow cachels when
12591 subwindows_changed, removing this was an optimization too far.
12593 * redisplay-output.c (compare_runes): reorganize so that we catch
12594 glyph changes when we want them. Set optimize_output when this
12595 would help layouts.
12596 (redisplay_output_layout): remove frame_really_changed, use
12597 optimize_output instead.
12599 * redisplay-msw.c (mswindows_output_display_block): reset
12600 optimize_output after outputting a glyph.
12601 * redisplay-x.c (x_output_display_block): ditto.
12602 * redisplay-tty.c (tty_output_display_block): ditto.
12604 * gutter.c: (specifier_vars_of_gutter): use new spec changed
12606 (gutter_specs_changed): do specific gutter positions.
12607 (top_gutter_specs_changed): new function. Only update the
12608 specified gutter specs.
12609 (bottom_gutter_specs_changed): ditto.
12610 (left_gutter_specs_changed): ditto.
12611 (right_gutter_specs_changed): ditto.
12613 * gui.c (gui_item_hash_internal): new function, does a real hash.
12614 (gui_item_id_hash): use it.
12615 (gui_item_hash): hash the eval'ed gui_item.
12617 * gui-x.c (popup_selection_callback): send an eval event to call
12618 Fupdate_widget_instances.
12620 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12621 to call Fupdate_widget_instances.
12623 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12624 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12626 * glyphs.c: (update_frame_subwindows): deleted.
12627 (Fupdate_widget_instances): new function for updating the dirty
12628 state of widgets that might have changed.
12629 (syms_of_glyphs): add Qupdate_widget_instances.
12630 (full_list_hash): hash a list completely.
12631 (image_instance_hash): use it for items and properties.
12633 * frame-msw.c (mswindows_size_frame_internal): remove unused
12636 * faces.h (struct face_cachel): fix comment.
12638 * event-stream.c (Fdispatch_non_command_events): new
12639 function. Process non-command events, forcing an event cycle
12641 (syms_of_event_stream): declare.
12642 (event_stream_force_event_pending): new function. Force an event
12643 on the native event queue so that an event cycle will occur next
12647 (struct ntpipe_shove_stream):
12648 (mswindows_enqueue_dispatch_event):
12649 (mswindows_dequeue_dispatch_event):
12650 (mswindows_cancel_dispatch_event):
12651 (mswindows_pump_outstanding_events):
12652 (mswindows_drain_windows_queue):
12653 (mswindows_handle_paint):
12654 (mswindows_wnd_proc):
12655 (mswindows_key_to_emacs_keysym):
12656 (get_process_input_waitable):
12657 (emacs_mswindows_delete_stream_pair): re-indent file.
12658 (mswindows_need_event): do not process further fds if the windows
12659 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12660 fixes the 100% cpu problem.
12661 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12663 2000-03-15 Olivier Galibert <galibert@pobox.com>
12669 * emacs.c: Moved dump file searching to dumper.c.
12670 (Frunning_temacs_p): Fixed.
12672 * alloc.c: Moved everything pdump-related to dumper.c. Removed
12673 last_lrecord_type_index_assigned.
12675 2000-02-20 Olivier Galibert <galibert@pobox.com>
12677 * symsinit.h: Added reinit parameter to init_console_stream
12680 * lisp.h: Added file parameter to pdump_load declaration.
12682 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12683 support. Added dump file searching.
12685 * config.h.in: Added EMACS_PROGNAME.
12687 * console-stream.c (init_console_stream): Fix reinitialisation
12688 when running from temacs.
12690 * alloc.c (pdump): Add id support.
12691 (pdump_load): Add file parameter and signature/id support.
12693 * Makefile.in.in: Add full pdump support.
12695 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
12697 * postgresql.c: Update documentation to reflect latest code
12699 (print_result): Show tuple counts in printed representation when
12701 (Fpq_put_nbytes): MULE-ize.
12702 (Fpq_get_line_async): Ditto.
12704 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12706 * postgresql.c (Fpq_lo_import): Fix return value.
12707 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12709 2000-03-13 Ben Wing <ben@xemacs.org>
12711 * alloc.c (pdump_load):
12712 Fix compile warning under mswin.
12714 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
12716 * postgresql.c: Mule-ization, bug fixes.
12717 Use PG_CODING to encapsulate coding system name changes.
12718 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12719 (pg-coding-system): Create.
12721 (Fpq_conn_defaults): Mule-ize.
12722 (Fpq_connectdb): Mule-ize & bug fix.
12723 (Fpq_connect_start): Mule-ize.
12724 (Fpq_set_client_encoding): Mule-ize.
12725 (Fpq_finish): Document `DEAD' connection status.
12726 (Fpq_clear): Ditto.
12727 (Fpq_pgconn): Mule-ize.
12728 (Fpq_exec): Mule-ize & bug fix.
12729 (Fpq_send_query): Ditto.
12730 (Fpq_get_result): Ditto.
12731 (Fpq_res_status): Mule-ize.
12732 (Fpq_result_error_message): Mule-ize.
12733 (Fpq_ntuples): fix comments.
12734 (Fpq_fname): Mule-ize.
12735 (Fpq_fnumber): Mule-ize.
12736 (Fpq_ftype): fix comments.
12737 (Fpq_get_value): Mule-ize.
12738 (Fpq_cmd_status): Ditto.
12739 (Fpq_cmd_tuples): Ditto.
12740 (Fpq_oid_value): Ditto.
12741 (Fpq_notifies): Ditto.
12742 (Fpq_lo_import): Ditto.
12743 (Fpq_lo_export): Ditto.
12744 (Fpq_get_line): Ditto.
12745 (Fpq_put_line): Mule-ize and bug fix.
12746 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12748 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
12750 * postgresql.c (vars_of_postgresql): Mule-ize.
12751 (Fpq_conn_defaults): Ditto.
12753 2000-03-12 Ben Wing <ben@xemacs.org>
12755 * alloc.c (Fmake_byte_code):
12756 * alloc.c (debug_string_purity_print):
12757 * alloc.c (pdump_backtrace):
12758 * alloc.c (pdump_get_indirect_count):
12759 * alloc.c (pdump_register_sub):
12760 * alloc.c (pdump_register_object):
12761 * alloc.c (pdump_register_struct):
12762 * alloc.c (pdump_dump_data):
12763 * alloc.c (pdump_reloc_one):
12767 * console-msw.c (GetConsoleHwnd):
12768 * console-msw.c (msw_hide_console):
12769 * console-msw.c (msw_show_console):
12770 * console-msw.c (msw_ensure_console_buffered):
12771 * console-msw.c (msw_output_console_string):
12772 * console-msw.c (console_type_create_mswindows):
12774 a) Added functions to manipulate the console window for use with
12777 b) Added support for writing text to the console, which is now
12778 used under Windows when xemacs is not being run non-interactively,
12779 to write text that would otherwise be destined for stdout because
12780 under these circumstances, text written to stdout tends to
12781 disappear and not be seen.
12785 * event-Xt.c (x_event_to_emacs_event):
12786 * event-Xt.c (describe_event_window):
12787 * events-mod.h (XEMACS_MOD_CONTROL):
12789 * events.c (Fmake_event):
12790 * events.c (character_to_event):
12791 * events.c (event_to_character):
12792 * events.c (format_event_object):
12793 * events.c (Fevent_modifiers):
12795 * events.h (struct key_data):
12796 * events.h (struct button_data):
12797 * events.h (struct misc_user_data):
12798 * frame-x.c (Fcde_start_drag_internal):
12799 * frame-x.c (Foffix_start_drag_internal):
12800 * gpmevent.c (Freceive_gpm_event):
12802 * keymap.c (bucky_sym_to_bucky_bit):
12803 * keymap.c (control_meta_superify):
12804 * keymap.c (make_key_description):
12805 * keymap.c (keymap_lookup_directly):
12806 * keymap.c (create_bucky_submap):
12807 * keymap.c (keymap_store):
12808 * keymap.c (define_key_check_and_coerce_keysym):
12809 * keymap.c (define_key_parser):
12810 * keymap.c (define_key_alternate_name):
12811 * keymap.c (Fdefine_key):
12812 * keymap.c (raw_lookup_key_mapper):
12813 * keymap.c (struct map_keymap_unsorted_closure):
12814 * keymap.c (map_keymap_unsorted_mapper):
12815 * keymap.c (map_keymap_sort_predicate):
12816 * keymap.c (map_keymap_sorted):
12817 * keymap.c (accessible_keymaps_mapper_1):
12818 * keymap.c (where_is_recursive_mapper):
12819 * keymap.c (describe_map_mapper):
12820 * keymap.c (describe_map_sort_predicate):
12821 * keymap.c (describe_map):
12822 * keymap.c (complex_vars_of_keymap):
12823 And a number of other files, the key modifier preprocessor
12824 constants that xemacs uses have names that conflict with constants
12825 defined under MS Windows for other purposes, so they were renamed
12826 to begin with the prefix XEMACS_. The variables that hold such
12827 modifiers were changed to consistently be of type int to fix
12828 various compile warnings.
12830 * console.c (complex_vars_of_console):
12833 * device-msw.c (mswindows_finish_init_device):
12834 * device-msw.c (msw_get_workspace_coords):
12835 * device-msw.c (mswindows_device_system_metrics):
12836 and various other files, added support for a new
12837 device property called offset-workspace which returns the position
12838 of the upper left corner of the workspace area and goes along with
12839 the existing size-workspace property.
12842 * dialog-msw.c (push_bufbyte_string_as_unicode):
12843 * dialog-msw.c (mswindows_popup_dialog_box):
12844 Added support for XEmacs-style accelerator specifications in
12845 button text. Note: I didn't add support for this under X Windows,
12846 and somebody needs to do this.
12849 * dialog.c (Fpopup_dialog_box):
12850 Documented the support for accelerators that was just mentioned.
12852 editfns.c (get_home_directory): Changed behavior under Windows
12853 when HOME not defined; former behavior was irretrievably broken.
12856 * emacs.c (main_1):
12858 * minibuf.c (clear_echo_area_internal):
12859 * minibuf.c (echo_area_append):
12861 * print.c (std_handle_out_external):
12862 * print.c (std_handle_out_va):
12864 * print.c (write_string_to_stdio_stream):
12865 * print.c (output_string):
12866 * print.c (debug_print):
12867 * print.c (debug_backtrace):
12868 * print.c (debug_short_backtrace):
12869 Cleaned up the code that prints text to stdout so that this can be
12870 changed to output into a console window instead under MS Windows,
12871 as described above.
12874 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12875 * eval.c (internal_catch):
12876 * eval.c (unwind_to_catch):
12877 * eval.c (throw_or_bomb_out):
12878 * eval.c (condition_case_1):
12879 * eval.c (signal_1):
12880 * eval.c (check_error_state_sanity):
12881 * eval.c (call_with_suspended_errors_1):
12882 * eval.c (call_with_suspended_errors):
12883 * eval.c (reinit_vars_of_eval):
12884 Added code to catch throw loops and check for a pesky bug that may
12888 * event-msw.c (key_needs_default_processing_p):
12889 * event-msw.c (mswindows_wnd_proc):
12890 * event-msw.c (mswindows_modifier_state):
12891 * event-msw.c (emacs_mswindows_quit_p):
12892 * event-msw.c (vars_of_event_mswindows):
12893 a) Added support for using the alt key to select menu items as is
12894 standard under MS Windows. This is controlled using the variable
12895 menu-accelerator-enabled, just like under X Windows. There is an
12896 option on the options menu to turn this support on. I really
12897 think that it should be on by default under Windows, but I'm not
12898 going to make this change yet.
12900 b) Added support for dynamic display size changes under Windows.
12903 * event-stream.c (maybe_echo_keys):
12904 * event-stream.c (Fnext_event):
12905 * event-stream.c (command_builder_find_leaf):
12906 * event-stream.c (lookup_command_event):
12907 * event-stream.c (execute_command_event):
12908 * event-stream.c (pre_command_hook):
12909 * event-stream.c (post_command_hook):
12910 * event-stream.c (syms_of_event_stream):
12911 * event-stream.c (vars_of_event_stream):
12912 * event-stream.c (complex_vars_of_event_stream):
12913 * events.h (struct command_builder):
12915 a) Tried to clean up a little bit the horribly written x-specific
12916 accelerator code that crept into this file. I moved this code
12917 into menubar-x.c where it belongs. I also needed to move the
12918 command builder structure into the file events.h because it is
12919 accessed directly by this accelerator code. What I didn't do, but
12920 which should be done at some point, is to properly abstract this
12921 code using device methods instead of the kludgy way that it
12922 currently hooks into the event code.
12924 b) Added the lisp variables this-command-properties and
12925 last-command- properties, which should be used to synchronize two
12926 adjacent commands in preference to playing games with the variable
12927 this-command, which is typically what happens.
12929 c) Added some slightly nasty code to hook into the lisp support
12930 for shifted- motion-key selection. This is actually necessary for
12931 somewhat complicated reasons, which are described in
12932 simple.el. (NB: I think the proper thing would be to have the code
12933 that calls the pre and post command hooks also call out to generic
12934 lisp functions in simple.el, where all built-in stuff could be
12935 added. I will think about this more.)
12937 * event-unixoid.c (poll_fds_for_input):
12938 * lread.c (readchar):
12939 * redisplay-tty.c (tty_clear_frame):
12940 * redisplay-x.c (x_get_gc):
12941 * signal.c (interrupt_signal):
12942 And a whole bunch of other files: fixed up places that printed
12943 directly to stderr to instead call the function stderr_out so that
12944 the changes I made under Windows work correctly.
12946 * filemode.c (mode_string):
12950 * frame-msw.c (mswindows_size_frame_internal):
12951 Fixed the computation of frame size and position to keep the frame
12952 within the workspace area, rather than within the physical
12953 dimensions of the screen, so that the frame doesn't overlap window
12954 manager decorations, such as the start menu and toolbar, typically
12955 at the bottom of the screen.
12957 * frame.c (vars_of_frame):
12958 Changed the default frame title format under MS Windows to consist
12959 of buffername-XEmacs, which is standard under MS Windows. I think
12960 it might be a good idea to change this everywhere because I think
12961 it is superior to the current frame title format, but this is the
12962 kind of change that is likely to cause some people to get annoyed,
12963 so I'm not making it.
12965 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12967 * gui-msw.c (mswindows_handle_gui_wm_command):
12968 Fixed compile warnings.
12971 * gui-x.c (strdup_and_add_accel):
12972 * gui-x.c (button_item_to_widget_value):
12974 Added code to automatically put an accelerator onto the beginning
12975 of menu items that don't have one as is now the standard, and is
12976 described more later. Also fixed things so that the menu item
12977 name can be an evaluated expression, again a new standard.
12980 * gui.c (gui_item_add_keyval_pair):
12981 * gui.c (make_gui_item_from_keywords_internal):
12982 * gui.c (gui_add_item_keywords_to_plist):
12983 * gui.c (gui_item_accelerator):
12984 * gui.c (gui_name_accelerator):
12985 * gui.c (gui_item_included_p):
12986 * gui.c (gui_item_display_flush_left):
12987 * gui.c (gui_item_display_flush_right):
12988 * gui.c (parse_gui_item_tree_item):
12989 * gui.c (parse_gui_item_tree_children):
12990 * gui.c (parse_gui_item_tree_list):
12991 Mule-ized. Cleanup. GCPRO addition.
12993 * line-number.c (buffer_line_number):
12995 * lisp.h (EMACS_INT_MAX):
12996 Added the manifest constant EMACS_INT_MIN corresponding to the
12997 existing constant EMACS_INT_MAX. This is partially to fix compile
12998 warnings under Windows, and partly for cleanliness.
13001 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13002 * menubar-msw.c (msw_translate_menu_or_dialog_item):
13003 * menubar-msw.c (displayable_menu_item):
13004 * menubar-msw.c (populate_menu_add_item):
13005 * menubar-msw.c (populate_or_checksum_helper):
13006 * menubar-msw.c (populate_menu):
13007 * menubar-msw.c (update_frame_menubar_maybe):
13008 * menubar-msw.c (prune_menubar):
13009 * menubar-msw.c (msw_char_is_accelerator):
13010 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13011 * menubar-msw.c (mswindows_handle_wm_command):
13012 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13013 * menubar-msw.c (mswindows_handle_wm_initmenu):
13014 * menubar-msw.c (mswindows_update_frame_menubars):
13015 * menubar-msw.c (mswindows_free_frame_menubars):
13016 * menubar-msw.c (mswindows_popup_menu):
13017 Fixed a bug in handling accelerators where an extra character
13018 would be displayed in the menu item. Also generalized the
13019 function displayable_menu_item because it is now used by the
13020 dialog box code as well. And finally, added code in the functions
13021 that create the menubar to extract a list of accelerators for the
13022 top level menubar, which is used in the event code to determine
13023 whether a particular alt-key combination should be used to invoke
13024 a menu item, or should be passed through to access the standard
13025 XEmacs keymap binding for this key combination.
13027 Much needed GCPROing.
13030 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13031 * menubar-x.c (menu_item_descriptor_to_widget_value):
13032 * menubar-x.c (restore_in_menu_callback):
13033 * menubar-x.c (x_popup_menu):
13034 * menubar-x.c (menu_move_up):
13035 * menubar-x.c (menu_move_down):
13036 * menubar-x.c (menu_move_left):
13037 * menubar-x.c (menu_move_right):
13038 * menubar-x.c (menu_select_item):
13039 * menubar-x.c (command_builder_operate_menu_accelerator):
13040 * menubar-x.c (menu_accelerator_junk_on_error):
13041 * menubar-x.c (command_builder_find_menu_accelerator):
13042 * menubar-x.c (Faccelerate_menu):
13044 Moved a whole bunch of code here that was previously in
13045 event-stream.c as described above. There is also code connected
13046 to the new standard of adding an accelerator to the beginning of
13047 menu items that don't have one as described above and below.
13050 * menubar.c (menu_parse_submenu_keywords):
13051 * menubar.c (Fmenu_find_real_submenu):
13052 * menubar.c (Fnormalize_menu_item_name):
13053 * menubar.c (syms_of_menubar):
13054 * menubar.c (vars_of_menubar):
13055 * menubar.c (complex_vars_of_menubar):
13057 a) Cleaned up a bunch of documentation and improved it.
13059 b) XEmacs now automatically adds an accelerator onto the beginning
13060 of any menu items that don't have one. I did this because there
13061 will inevitably be some menu items on the main menubar that don't
13062 have accelerators on them because the package that adds that
13063 particular menu item hasn't yet been fixed up to have accelerators
13064 in them and it looked rather strange to have some items with and
13065 some items without accelerators, especially since even in items
13066 without accelerators, you can, at least under windows, still
13067 access the item through an accelerator corresponding to the first
13068 character in the item's name. If people don't like this behavior,
13069 I can add a variable to turn it off optionally, but I'm not sure
13070 this is a good idea because we really do need to have accelerators
13071 on all of the menu items, and if a package doesn't like the
13072 accelerators being put on the first character, then it should put
13073 the accelerators where they belong.
13075 c) I made a behavior change, which is that the descriptor that
13076 specifies the text of the menu item, which formerly was just a
13077 string, can now also be an evaluated expression. This makes this
13078 descriptor parallel with all of the others, which could also be
13079 evaluated expressions. This also obviates the need for the
13080 keyword :label, which was previously listed in the documentation
13081 as unimplemented, and which was for the same purpose.
13086 * ntproc.c (new_child):
13087 * ntproc.c (sys_spawnve):
13088 * ntproc.c (find_child_console):
13089 * ntproc.c (sys_kill):
13090 Fixed compile warnings. By the way, this file should really go
13091 away entirely, and this will happen as soon as Kirill makes his
13092 final round of process cleanups, which affect the function
13096 * process-nt.c (struct nt_process_data):
13097 * process-nt.c (find_process_from_pid):
13098 * process-nt.c (send_signal_the_nt_way):
13099 * process-nt.c (enable_child_signals):
13100 * process-nt.c (find_child_console):
13101 * process-nt.c (send_signal_the_95_way):
13102 * process-nt.c (nt_finalize_process_data):
13103 * process-nt.c (ensure_console_window_exists):
13104 * process-nt.c (nt_create_process):
13105 * process-nt.c (nt_kill_child_process):
13106 * process-nt.c (nt_kill_process_by_pid):
13107 * process-nt.c (nt_open_network_stream):
13108 * process-nt.c (vars_of_process_nt):
13109 Copied over code from Emacs 20.5 to correctly send signals to sub-
13110 processes under Windows 95. Also added code to automatically
13111 create and hide console window when a sub-process is created under
13112 Windows 95, which obviates the need for the separate runemacs.exe
13113 executable, and finally implemented some variables that were
13114 implemented in Emacs 20.5, but previously not in XEmacs. These
13115 include mswindows- start-process-share-console and
13116 mswindows-start-process-inherit-error-mode. (Both of these only
13117 apply to Windows 95.)
13119 * regex.c (regex_compile): Fixed a compile warning.
13122 * select-msw.c (mswindows_own_selection):
13123 * select-msw.c (mswindows_get_foreign_selection):
13124 * select-msw.c (mswindows_disown_selection):
13125 * select-msw.c (console_type_create_select_mswindows):
13126 * select-msw.c (syms_of_select_mswindows):
13127 Cleaned up the file and implemented the device method
13128 selection_exists_p, which had accidentally been left out. Also
13129 removed four lisp functions that were remnants from before the
13130 time when the selection code was properly device abstracted.
13131 These functions are no longer needed because there are generic
13132 equivalents, and because they were added recently and don't exist
13133 in FSF Emacs, I don't think there's any problem with just deleting
13137 * sysdep.c (sys_subshell):
13138 Fixed a compile warning, although in this case there's probably
13139 something wrong with this code, and it ought to be looked into
13140 more thoroughly by somebody who understands it.
13143 * window.c (Fwindow_text_area_height):
13144 * window.c (Fwindow_width):
13145 * window.c (Fwindow_full_width):
13146 * window.c (Fwindow_pixel_width):
13147 * window.c (debug_print_window):
13148 * window.c (syms_of_window):
13149 Added functions window-text-area-height and window-full-width,
13150 which are functions for returning various width and height
13151 characteristics of a window. (One of these functions is necessary
13152 for making the file dialog box work correctly, and the other one
13153 was added for completeness.) Also added a table to the
13154 documentation for window-height which describes the entire scheme
13155 for accessing width and height characteristics of a window.
13157 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13159 * nt.c (fstat): Added a comment for another problem with
13160 non-encapsulated [f]stat(), reported by Adrian Aichner
13161 <aichner@ecf.teradyne.com>.
13163 2000-03-11 Andy Piper <andy@xemacs.org>
13165 * window.c (make_dummy_parent): initialize subwindow instance
13167 (Fset_window_configuration): zero extent_modiff.
13169 2000-03-10 Andy Piper <andy@xemacs.org>
13171 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13172 more changes can be triggered.
13173 (Fredisplay_frame): ditto.
13174 (Fredraw_device): ditto.
13175 (Fredisplay_device): ditto.
13176 (redisplay_frame): make non-static.
13177 (redisplay_frame): call update_frame_gutter_geometry outside of
13180 * gutter.h: declare update_frame_gutter_geometry.
13182 * redisplay.h: declare redisplay_frame.
13184 * gutter.c (update_frame_gutter_geometry): move geometry changes
13185 in update_frame_gutters here. Geometry changes can only occur
13186 outside of redisplay.
13187 (update_frame_gutters): remove geometry change code.
13188 (Fredisplay_gutter_area): make sure that we are in display when we
13189 update and that we have flushed any size changes.
13191 2000-03-11 Andy Piper <andy@xemacs.org>
13193 * alloc.c (pdump_dump_data): remove i & count shadows.
13195 2000-02-27 Mike Alexander <mta@arbortext.com>
13197 * sysdep.h: Declare pdump_read_file
13199 * sysdep.c (pdump_read_file): New function
13201 * alloc.c (pdump_load): Call pdump_read_file to get the portable
13204 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
13206 * lrecord.h: add `lrecord_type_pgsetenv'.
13208 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
13210 * symsinit.h: declare (vars|syms)_of* functions.
13211 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13213 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
13215 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13217 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13220 * emacs.c (main_1): Call postgres initialization code.
13222 * postgresql.h: New file. PostgreSQL RDBMS support.
13223 * postgresql.c: New file.
13225 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
13227 * redisplay-output.c (redisplay_output_display_block): Disable
13230 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13232 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13233 (Fcanna_henkan_next): Ditto.
13234 (Fcanna_bunsetu_henkou): Ditto.
13235 (Fcanna_henkan_kakutei): Ditto.
13236 (Fcanna_henkan_end): Ditto.
13237 (Fcanna_henkan_quit): Ditto.
13238 (Fcanna_henkan_next): Set retun value correctly.
13239 (c2mu): Use unsigned char instead of signed char.
13241 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13243 * emacs.c (main_1): Always call syms_of_gui.
13244 * inline.c: include gui.h
13246 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
13248 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13249 converted to Lisp_Object.
13250 (Qtop_bottom): New variable.
13251 (syms_of_redisplay): Initialize it.
13252 * redisplay.h (Vvisible_bell): Ditto.
13253 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13254 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13255 only flash top and bottom.
13257 2000-03-08 Andy Piper <andy@xemacs.org>
13259 * buffer.c (Frename_buffer): record new buffer name the right way.
13261 2000-03-08 Andy Piper <andy@xemacs.org>
13263 * glyphs.c (update_subwindow): increase hash depth so that widget
13264 items get picked up properly.
13266 * redisplay-output.c (compare_runes): increase hash depth so that
13267 widget items get picked up properly.
13269 2000-03-08 Andy Piper <andy@xemacs.org>
13271 * gutter.c (output_gutter): add some debug.
13273 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13274 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13275 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13277 * redisplay-output.c (compare_runes): use display_hash to
13278 determine if glyphs really are not the same.
13280 * glyphs.c (update_subwindow): check display_hash to see if
13281 anything really needs to be updated. If not then do
13282 nothing. Record the display_hash after updating.
13283 (image_instance_equal): compare the image_instance face also.
13285 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
13287 * redisplay.h: Fix comment style.
13289 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
13291 * consle-msw.h (struct mswindows_frame):
13292 Added new member paint_pending to indicate whether a WM_PAINT
13293 magic event has been queued for this frame.
13295 * event-msw.c (mswindows_drain_windows_queue):
13296 Don't queue a WM_PAINT magic event if one is already queued.
13297 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13299 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13301 2000-03-07 Didier Verna <didier@xemacs.org>
13303 * dired.c: #include `regex.h' after `sysfile.h'.
13305 2000-03-06 Martin Buchholz <martin@xemacs.org>
13307 * sound.c (init_nas_sound): Fix compiler warning.
13309 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13311 (MARK_STRUCT_AS_FREE):
13312 (MARK_STRUCT_AS_NOT_FREE):
13313 Make `gcc -fstrict-aliasing' work properly.
13315 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
13317 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13318 (mswindows_delete_device): Call CoUnnitialize().
13320 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13322 2000-02-25 <CraigL@DyCon.com>
13324 * process-nt.c: MinGW now has <shellapi.h>, but still needs
13327 * sysdep.c: This extern declaration for environ prevents MinGW
13328 from finding the variable in CRTDLL.DLL.
13330 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13332 (SHGFI_EXETYPE): ..
13333 (WM_MOUSEWHEEL): ..
13334 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13336 (MMRESULT): Removed, now defined in cygwin's windows headers.
13338 (uid_t,gid_t,pid_t,ssize_t): ..
13339 (_timeb): Removed, MinGW defines both _timeb and timeb.
13340 (HAVE_H_ERRNO): Added.
13341 (HAVE_TZNAME): Added, configure is not detecting this.
13343 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
13345 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13346 * syntax.c (syntax_match): Use it.
13348 * cmds.c: Import auto-fill-chars from FSF Emacs.
13349 (Vauto_fill_chars): New variables.
13350 (internal_self_insert): Check Vauto_fill_chars.
13352 Declare auto-fill-chars as a Lisp variable and initialize it.
13354 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13356 * fileio.c (Fmake_symbolic_link):
13358 Run handlers even if local machine doesn't have symlinks.
13360 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
13362 * event-msw.c (mswindows_drain_windows_queue):
13363 Don't generate paint magic events for non-XEmacs frames.
13365 2000-03-05 Andy Piper <andy@xemacs.org>
13367 * redisplay.c (redisplay_frame): generate_displayable_area and
13368 friends assumes that we are not in GC, we therefore have to make
13369 sure that this doesn't happen.
13371 * gutter.c (calculate_gutter_size): generate_displayable_area
13372 assumes that we are not in GC, we therefore have to make sure that
13373 this doesn't happen.
13375 2000-03-05 Martin Buchholz <martin@xemacs.org>
13377 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13379 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
13381 * redisplay.c (regenerate_window): Make sure we set a sane value
13382 for end_pos even if we jump out of the loop.
13383 (regenerate_window): Answer Ben's question :-).
13384 (start_end_of_last_line): Add may_error argument.
13385 (start_of_last_line):
13386 (end_of_last_line): Pass may_error = 0.
13387 (end_of_last_line_may_error): New function.
13388 (pixel_to_glyph_translation): Use it, so we don't crash in
13391 2000-03-04 Andy Piper <andy@xemacs.org>
13393 * window.h (struct window): add gutter_extent_modiff.
13395 * window.c (allocate_window): zero out gutter_extent_modiff.
13397 * redisplay.h: declare sync_display_line_structs.
13399 * redisplay.c (add_glyph_rune): add a better comment.
13401 * redisplay-output.c (sync_display_line_structs): made non-static.
13402 (compare_runes): remove unneccesary glyph cachel access.
13404 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13406 * gutter.c (output_gutter): don't output the gutter if extent
13407 changes only involve extents in buffers. use 4 sets of display
13409 (gutter_extent_signal_changed_region_maybe): new function. Mark
13410 extents in gutters as changed.
13411 (update_frame_gutters): use 4 sets of display lines.
13412 (reset_gutter_display_lines): ditto.
13413 (free_frame_gutters): ditto.
13414 (redraw_exposed_gutter): force output of gutters.
13416 * frame.h (struct frame): add 4 sets of gutter display lines.
13418 * extents.c: (extent_changed_for_redisplay): signal changes to
13419 extents in strings in the gutter as well as extents in buffers.
13421 2000-03-02 Andy Piper <andy@xemacs.org>
13423 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13425 * frame.c (Fmake_frame): make sure the gutters get initialized
13426 after the frame is visible.
13427 (set_frame_selected_window): re-arrange compilation macros a
13429 (change_frame_size_1): mark gutters changed.
13431 * device.c (Fset_device_class): mark gutters changed.
13433 2000-03-01 Andy Piper <andy@xemacs.org>
13435 * window.c (window_top_frame_gutter_height): deleted.
13436 (window_bottom_frame_gutter_height): ditto.
13437 (window_left_frame_gutter_height): ditto.
13438 (window_right_frame_gutter_height): ditto.
13439 (window_top_gutter_height): don't use them.
13440 (window_bottom_gutter_height): ditto.
13441 (window_left_gutter_width): ditto.
13442 (window_right_gutter_width): ditto.
13443 (Fsplit_window): ditto.
13444 (Fwindow_pixel_edges): don't use border dimensions here.
13446 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13447 (update_scrollbar_instance): ditto.
13449 * redisplay.c (generate_modeline): don't take gutters into account.
13450 (generate_modeline): ditto.
13451 (redisplay_frame): small gutter display optimization.
13453 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13455 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13456 gutters into account.
13458 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13459 for window position and type.
13461 * gutter.c (get_gutter_coords): fix for frame gutters.
13462 (update_frame_gutters): update frame geometry if the gutters have
13464 (init_frame_gutters): record current gutter geometries.
13466 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13468 (mswindows_widget_instantiate): ditto.
13470 * frame.h (struct frame): add current_gutter_bounds.
13472 * frame.c (change_frame_size_1): position window and minibuffer
13473 appropriately taking into account the frame gutters.
13475 * frame-x.c: (x_initialize_frame_size): take into account the
13478 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13480 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
13482 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
13484 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13486 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13488 * file-coding.c (reset_decoding_stream): Clear previous
13489 detection state when autodetect.
13491 2000-02-29 Didier Verna <didier@xemacs.org>
13493 * extents.c (set_extent_glyph_1): don't require extents to be
13496 2000-02-27 Andy Piper <andy@xemacs.org>
13498 * gutter.c (Fset_default_gutter_position): don't default left and
13499 right gutter visibility to t.
13500 (Fset_default_gutter_position): run
13501 default-gutter-position-changed-hook.
13502 (syms_of_gutter): add default-gutter-position-changed-hook.
13504 2000-02-26 Andy Piper <andy@xemacs.org>
13506 * specifier.c (Fmake_specifier): add gutter references.
13508 * gutter.h (RAW_WINDOW_GUTTER): new macro.
13510 * lisp.h: declare Fvalid_plist_p.
13512 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13514 (default_gutter_visible_p_changed_in_window): invalidate gutter as
13515 well as its visibility so that it gets reconstructed.
13516 (construct_window_gutter_spec): new function. Construct a string
13517 to be displayed in the gutter from a plist of strings. Take care
13518 to only use elements that are declared as visible.
13519 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13521 (gutter_validate): allow plists of strings in the specifier.
13522 (gutter_specs_changed): construct the real_gutter from the gutter
13523 specs using construct_window_gutter_spec.
13524 (gutter_visible_validate): gutter-visible is a new specifier type.
13525 (Fgutter_visible_specifier_p): new function for the new specifier.
13526 (syms_of_gutter): declare gutter-visible and
13527 Fgutter_visible_specifier_p.
13528 (specifier_type_create_gutter): intitalize new gutter-visible
13530 (reinit_specifier_type_create_gutter): ditto.
13531 (specifier_vars_of_gutter): use new specifier type for gutter
13533 (init_frame_gutters): construct real_gutter correctly.
13534 (Fgutter_specifier_p): beef up documentation.
13535 (Fgutter_size_specifier_p): ditto.
13537 * winslots.h: add real_gutter slots.
13539 2000-02-25 Andy Piper <andy@xemacs.org>
13541 * device-msw.c: Be kind to older cygwin versions. From Raymond
13542 Toy <toy@rtp.ericsson.se>.
13544 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13545 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13547 2000-02-25 Martin Buchholz <martin@xemacs.org>
13549 * elhash.c (MARK_OBJ): Practice macro hygiene.
13551 2000-02-24 Martin Buchholz <martin@xemacs.org>
13553 * miscplay.c: s/__inline__/inline/g;
13554 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13555 (get_device_compdc): INLINE ==> static inline
13556 * *.[ch]: Change INLINE to INLINE_HEADER globally.
13557 find -name '*.h' | \
13558 xargs global-replace \
13559 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13561 2000-02-25 Andy Piper <andy@xemacs.org>
13563 * window.c (window_top_frame_gutter_height): new function.
13564 (window_top_window_gutter_height): ditto.
13565 (window_top_gutter_height): use them.
13566 (window_bottom_frame_gutter_height): new function.
13567 (window_bottom_window_gutter_height): ditto.
13568 (window_bottom_gutter_height): use them.
13569 (window_left_window_gutter_width): new function.
13570 (window_left_frame_gutter_width): ditto.
13571 (window_left_gutter_width): use them.
13572 (window_right_window_gutter_width): new function.
13573 (window_right_frame_gutter_width): ditto.
13574 (window_right_gutter_width): use them.
13575 (window_pixel_height): new function. calulate window pixel height
13576 with frame gutter involvement.
13577 (Fsplit_window): calculate new sizes taking frame gutters into
13579 (window_char_height_to_pixel_height): don't include frame gutters.
13580 (window_char_height): use window_pixel_height.
13581 (window_pixheight): rename from window_pixel_height.
13582 (change_window_height): use it.
13583 (window_pixel_height_to_char_height): don't include frame gutters.
13584 (window_char_width_to_pixel_width): ditto.
13586 2000-02-25 Andy Piper <andy@xemacs.org>
13588 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13591 2000-02-24 Martin Buchholz <martin@xemacs.org>
13593 * alloc.c (staticpro):
13594 (staticpro_nodump):
13599 (compact_string_chars):
13600 (pdump_dump_wired):
13601 Convert: if (foo) abort(); ==> assert (! foo);
13603 * eldap.c (Fldap_search_basic):
13607 Fix compiler warnings, and possible crashes if (random) return
13608 value were to be used.
13610 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13612 * device-msw.c: Workaround ResetDC failure.
13614 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13615 applying a devmode.
13617 * redisplay-msw.c (get_frame_dc): Added start_page_p.
13618 (mswindows_text_width): Do not start printer page.
13620 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13622 * glyphs-msw.c: Added image methods to msprinter console and
13623 msprinter-specific image instantiation.
13625 2000-02-20 Mike Alexander <mta@arbortext.com>
13627 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13628 to avoid crashes when selection-sets-clipboard is on
13629 (mswindows_own_selection): ditto
13631 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13634 * redisplay-msw.c (get_frame_dc):
13635 (get_frame_compdc):
13637 * device-msw.c (mswindows_init_device):
13638 (mswindows_delete_device):
13639 (msprinter_init_device):
13640 (msprinter_delete_device):
13641 * frame-msw.c (mswindows_init_frame_1):
13642 (mswindows_delete_frame):
13643 (msprinter_init_frame_3):
13644 (msprinter_delete_frame): Move compatible DC to device object from
13645 frame object, for both mswindows and msprinter. Only one at a time
13646 is needed, it is a real waste to have one per frame!
13648 2000-02-23 Andy Piper <andy@xemacs.org>
13650 * glyphs.c: add dynamic width and height elements.
13651 (image_instance_equal): ditto.
13653 * glyphs-widget.c (widget_query_geometry): calculate width and
13654 height dynamically if required.
13655 (initialize_widget_image_instance): initialize dynamic dimensions.
13656 (widget_instantiate): pick-up dynamic dimensions.
13658 * glyphs.h (struct Lisp_Image_Instance): add width and height for
13659 dynamic determination. Add appropriate macros.
13661 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13663 (WINDOW_GUTTER_SIZE): ditto.
13664 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13666 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13668 (get_frame_dc): ditto.
13670 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13673 2000-02-23 Martin Buchholz <martin@xemacs.org>
13675 * XEmacs 21.2.31 is released.
13677 2000-02-22 Ben Wing <ben@xemacs.org>
13679 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13681 2000-02-22 Andy Piper <andy@xemacs.org>
13683 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13685 2000-02-21 Mike Sperber <mike@xemacs.org>
13689 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13692 2000-02-21 Mike Sperber <mike@xemacs.org>
13694 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13696 2000-02-21 Martin Buchholz <martin@xemacs.org>
13698 * XEmacs 21.2.30 is released.
13700 2000-02-20 Martin Buchholz <martin@xemacs.org>
13702 Performance hacking.
13704 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13705 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13706 * emacs.c (main_1):
13708 * console.c (DEFVAR_CONSOLE_LOCAL_1):
13709 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13710 * symeval.h (DEFVAR_SYMVAL_FWD):
13711 * symbols.c (guts_of_unbound_marker):
13712 Make all c_readonly objects also lisp_readonly and marked for life.
13713 * lrecord.h (struct lrecord_implementation):
13714 Document flags better.
13715 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13716 * lrecord.h (DECLARE_LRECORD):
13717 * lrecord.h (XSETRECORD):
13718 * lrecord.h (RECORDP):
13719 * lrecord.h (RECORD_TYPEP):
13720 * lrecord.h (RECORD_MARKER): New.
13721 * lrecord.h (error_check_*):
13722 * lrecord.h (CONCHECK_NONRECORD):
13723 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13724 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13725 * lrecord.h (set_lheader_implementation):
13726 * lrecord.h (enum lrecord_type): New.
13727 * symeval.h (SYMBOL_VALUE_MAGIC_P):
13728 * alloc.c (disksave_object_finalization_1):
13729 * alloc.c (mark_object):
13730 * alloc.c (lrecord_type_index):
13731 * alloc.c (tick_lcrecord_stats):
13732 * alloc.c (Fgarbage_collect):
13733 * alloc.c (init_alloc_once_early):
13734 * alloc.c (pdump_load):
13735 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13736 * alloc.c (lrecord_type_index): Delete.
13737 Make lisp object type indexes be constant.
13738 Makes (byte-compile) 5% faster.
13739 Put all marker functions into their own array.
13740 Makes (garbage-collect) 5% faster.
13741 Optimize SYMBOL_VALUE_MAGIC_P.
13742 Makes (byte-compile) 2-3% faster.
13743 * config.h.in (gc_checking_assert): New.
13744 * alloc.c: Use gc_checking_assert().
13745 * .dbxrc: Make compatible with new object type implementation.
13746 * .gdbinit: Make compatible with new object type implementation.
13747 * alloc.c: Delete all symbols defined only for debugging, such as
13748 Lisp_Type_Vector and lrecord_charset.
13750 2000-02-21 Andy Piper <andy@xemacs.org>
13752 * gui-msw.c (Fmswindows_shell_execute): fix file location
13755 * buffer.c (Fkill_buffer): remove buffer from alist buffer
13756 unshowing so that set_window_buffer doesn't undo
13757 kill_buffer_hook's hard work.
13759 * glyphs-widget.c (tab_control_query_geometry): don't count the
13760 first item when calculating geometry.
13762 * glyphs.c (map_subwindow): remove redundant code.
13763 (update_frame_subwindows): be more circumspect about when to
13766 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13767 when items haven't changed. Update faces if faces have changed as
13768 well as just the widget face.
13769 (x_tab_control_update): Update faces if faces have changed as well
13770 as just the widget face.
13772 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13774 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13776 (build_syscolor_string): Use mswindows_color_to_string to try to
13778 (mswindows_device_system_metrics): Reverse the foreground and
13779 background colors so that they match the documentation.
13781 * objects-msw.c: (mswindows_X_color_map): tweak some values so
13782 they match the default Windows palette.
13783 (mswindows_color_to_string): New function.
13785 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
13787 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13789 2000-02-18 Olivier Galibert <galibert@pobox.com>
13791 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13792 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13794 * symbols.c (init_symbols_once_early): Removed obsolete
13795 DATA_SEG_BITS related kludge.
13796 (defvar_magic): Ditto.
13798 * malloc.c: Removed obsolete DATA_SEG_BITS
13800 * mem-limits.h: Ditto.
13802 * Makefile.in.in: Removed obsolete HAVE_SHM
13805 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13807 * device-msw.c (mswindows_delete_device): Free DDE string
13810 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13812 * keymap.c (get_keyelt):
13813 * unexnt.c (unexec):
13814 * vm-limit.c (memory_warnings):
13815 * ntheap.c (recreate_heap):
13816 * ntheap.h (UNINIT_PTR):
13817 * select-msw.c (Fmswindows_get_clipboard):
13818 (Fmswindows_set_clipboard):
13819 * objects-msw.h (MSWINDOWS_BAD_HFONT):
13821 * menubar-msw.c (displayable_menu_item):
13823 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13824 * sysdep.c (sys_subshell):
13825 * process-nt.c (nt_create_process):
13826 * nt.c (normalize_filename):
13827 (dostounix_filename):
13828 (unixtodos_filename):
13829 * ntproc.c (win32_executable_type):
13830 * ntplay.c (play_sound_data_1):
13832 * editfns.c (get_home_directory):
13833 * event-msw.c (struct winsock_stream):
13834 (mswindows_dde_callback):
13835 * device-msw.c (msprinter_init_device):
13836 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13838 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13839 mswindows_clear_toolbar were swapped!
13841 * objects-msw.c:(colormap_t):
13843 * emacs.c (struct standard_args): Fixed const jumble.
13845 * glyphs-widget.c (update_widget): Fixed comparison notation.
13847 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13849 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13850 __declspec(noreturn) syntax.
13852 2000-02-19 Martin Buchholz <martin@xemacs.org>
13854 * eldap.c (Fldap_open):
13855 (Fldap_search_basic):
13858 Use new coding system conversion macros.
13860 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13862 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13864 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
13866 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13867 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13869 * eldap.c (Qadd, Qreplace): New constant symbols
13870 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13871 interruptions by XEmacs signals
13872 Remove unnecessary calls to slow_down_interrupts and
13873 speed_up_interrupts
13874 (Fldap_search_basic): Renamed from Fldap_search_internal
13875 Added new optional parameter VERBOSE that triggers the
13876 display of progress messages
13877 Remove unnecessary calls to slow_down_interrupts and
13878 speed_up_interrupts
13879 LDAP result code analysis rewritten
13880 (Fldap_add, Fldap_modify, Fldap_delete): New functions
13881 (syms_of_eldap): Define the new symbols and functions
13884 2000-02-17 Martin Buchholz <martin@xemacs.org>
13886 * realpath.c: Determine PATH_MAX maximally portably.
13888 * insdel.c (bytecount_to_charcount): Optimize.
13889 The function used to be optimized for entirely ASCII sequences.
13890 Now it is optimized for successive characters from the same
13891 charset. This also wins big for _mostly_ ASCII sequences.
13893 * fileio.c (Ffile_truename): convert return from realpath() using
13894 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
13895 - Rewrite GCPROing slightly.
13897 * sysdep.c (sys_open): Do filename conversion, like all other
13898 sys_* functions. Fixes bug:
13899 (let ((file-name-coding-system 'iso-8859-2))
13900 (write-region x y latin2-name))
13901 ==> writes filename using internal encoding.
13903 2000-02-18 Martin Buchholz <martin@xemacs.org>
13905 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13906 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13907 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13908 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13909 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13910 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13911 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13912 (CONST_IF_NOT_DEBUG): Delete.
13913 * alloc.c (this_one_is_unmarkable): Delete.
13914 (mark_object): Don't check for this_one_is_unmarkable. Use the
13915 c_readonly flag instead.
13916 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13918 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
13920 * event-msw.c (mswindows_drain_windows_queue):
13921 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13922 away redundant repaint events.
13924 2000-02-17 Andy Piper <andy@xemacs.org>
13926 * redisplay.h: declare mark_redisplay_structs.
13928 * redisplay.c (redisplay_window):
13929 (redisplay_frame): don't check subwindows_state_changed.
13930 (mark_redisplay): mark gutters here.
13932 * glyphs.c: (instantiate_image_instantiator): always layout if we
13933 haven't done so already.
13934 (allocate_image_instance): don't mark as dirty.
13935 (update_subwindow): bind inhibit_quit.
13937 * gutter.c (mark_gutters): new function.
13939 * glyphs-x.c (x_update_widget): Always resize to get round a
13942 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13943 breaking absolutely everything.
13945 * gutter.h: declare mark_gutters.
13947 2000-02-16 Martin Buchholz <martin@xemacs.org>
13949 * XEmacs 21.2.29 is released.
13951 2000-02-15 Olivier Galibert <galibert@pobox.com>
13953 * fns.c (size_bit_vector): Fix computation of the size.
13955 2000-02-15 Martin Buchholz <martin@xemacs.org>
13957 * *.[ch]: Change CONST to const globally.
13958 find -name '*.[ch]' | \
13959 xargs global-replace \
13960 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13961 - Remove vestigial references to CONST_IS_LOSING
13963 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13965 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13966 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13967 events instead of dispatching them directly.
13968 (mswindows_handle_paint): New function to do repainting.
13969 (mswindows_wnd_proc):
13970 (emacs_mswindows_handle_magic_event): Call above function.
13972 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
13974 * objects-msw.c (mswindows_create_font_variant): Return the new
13976 (initialize_font_instance): Get font metrics from the underlined
13977 variant of the font to cope with the case where the underlined
13978 font has a bigger descent.
13980 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
13982 * gui.c (gui_item_accelerator): Return the first underlined
13983 character in item name.
13985 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
13987 * lisp.h: Added Qprinter.
13989 * general.c (syms_of_general): Initialized it.
13991 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13993 (get_frame_compdc): Made inline.
13995 * console.h (struct console_methods): Added eject_page method.
13997 * frame.h: Added FRAME_DISPLAY_P and friends.
13998 Aligned backslahes in many macros in more readable fashion.
13999 Added page_number to struct frame, and an accessor macro
14002 * defice.h: Added DEVICE_DISPLAY_P and friends.
14004 * device.c (Fdevice_printer_p): Used these.
14006 * frame.c (allocate_frame_core): Initialize page number.
14007 (Fprint_job_page_number):
14008 (Fprint_job_eject_page): Implemented.
14010 * frame-msw.c (msprinter_eject_page): Added method.
14011 (msprinter_start_page): Added.
14013 * window.c (Fwindow_truncated_p): Fixed docstring.
14014 (Fwindow_last_line_visible_height): Implemented.
14016 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
14018 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14020 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
14022 * syntax.c (scan_words): Always advance at least one character.
14024 2000-02-13 Andy Piper <andy@xemacs.org>
14026 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14027 to make sure the glyph is in the cachels.
14029 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14030 global image instance flag.
14031 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14032 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14034 * glyphs.c (allocate_image_instance): set dirty bits correctly.
14035 (Fset_image_instance_property): mark layout as changed.
14036 (invalidate_glyph_geometry_maybe): mark layout as changed.
14037 (glyph_width): use new NEEDS_LAYOUT macro.
14038 (glyph_ascent): ditto.
14039 (glyph_descent): ditto.
14040 (glyph_height): ditto.
14041 (image_instance_layout): mark layout as clean after laying out.
14042 (update_subwindow): don't mark layout as clean here.
14044 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14045 should no longer be needed.
14047 * glyphs-x.c (x_update_widget): sanitize asserts.
14048 (x_finalize_image_instance): sanitize assignment to widgets.
14050 * glyphs-widget.c (widget_instantiate): don't need to clear the
14053 2000-02-13 Martin Buchholz <martin@xemacs.org>
14055 * sysdep.c (getcwd): Use standard prototype.
14056 * sysdep.h (getcwd): Use standard prototype.
14058 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14059 (sequence, start, end).
14060 Remove redundant type checking.
14061 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14062 view of `caller-protects') to avoid a crash where the real fix was
14065 2000-02-12 Martin Buchholz <martin@xemacs.org>
14067 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14069 * s/sol2.h: Remove feature macro initialization.
14071 * alloc.c (alloc_lcrecord): Add more type checking assertions.
14072 (vector_hash): New. Code from internal_hash.
14074 Fix up allocation subsystem comments.
14076 * config.h.in: Add __EXTENSIONS__ for Solaris.
14078 * systime.h (EMACS_GETTIMEOFDAY): New.
14079 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14080 Remove Solaris-specific code.
14081 Use void* for the (ignored) second arg for gettimeofday().
14083 * elhash.c (hash_table_hash): Implement it, finally.
14084 * elhash.c: Use hashcode_t.
14086 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14087 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14089 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14090 * fns.c (size_bit_vector):
14091 * alloc.c (size_vector):
14092 (make_vector_internal):
14093 (make_bit_vector_internal):
14094 (sweep_bit_vectors_1):
14095 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14097 2000-02-10 Martin Buchholz <martin@xemacs.org>
14099 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14100 Include strings.h to avoid warnings for bzero and strcasecmp.
14102 2000-02-10 Olivier Galibert <galibert@pobox.com>
14104 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14105 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14107 * fns.c (size_bit_vector): New. Declare bit vectors as a
14110 2000-02-10 Olivier Galibert <galibert@pobox.com>
14112 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14113 use a value field instead.
14114 (symbol_value_forward_forward): Use value field.
14115 (DEFVAR_SYMVAL_FWD): Use value field.
14116 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
14117 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14118 (DEFVAR_CONST_INT): Ditto.
14119 (DEFVAR_BOOL): Ditto.
14120 (DEFVAR_CONST_BOOL): Ditto.
14121 (DEFVAR_INT_MAGIC): Ditto.
14122 (DEFVAR_BOOL_MAGIC): Ditto.
14124 * symbols.c (guts_of_unbound_marker): Use value field.
14125 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14126 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14128 * lisp.h: Declare dumpopaque and noninteractive1.
14130 * alloc.c (dumpopaque): Added.
14131 (pdump_dump_opaquevec): Added.
14132 (pdump): Call pdump_dump_opaquevec to dump opaque data.
14133 (pdump_load): Reload opaque data. Sync noninteractive1 with
14136 2000-02-10 Andy Piper <andy@xemacs.org>
14138 * glyphs.c (image_instance_layout): if the size changes, mark it
14141 * redisplay-output.c (redisplay_output_layout): Update the
14143 (redisplay_output_subwindow): ditto.
14145 * glyphs.c (update_subwindow): make sure we reset flags for
14146 layouts as well as everything else.
14148 * glyphs-widget.c (layout_layout): don't need to set the instances
14151 2000-02-09 Martin Buchholz <martin@xemacs.org>
14153 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
14154 not HAVE_DLOPEN, which is a lower-level thing.
14156 * .cvsignore: Ignore gmon.out
14158 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
14160 * .cvsignore: Ignore portable dumper xemacs.dmp file
14162 2000-02-09 Andy Piper <andy@xemacs.org>
14164 * redisplay-output.c (redisplay_output_layout): be more clever
14165 about when we output based on the changed flags.
14167 * glyphs.h (struct image_instantiator_methods): add update_method.
14168 (struct Lisp_Image_Instance): add changed flags. Declare new
14169 macros for manipulating them.
14171 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14172 (image_instance_parent_glyph): find an image_instance's parent
14173 glyph or image_instance.
14174 (image_instance_layout): mark the size as changed.
14175 (set_image_instance_dirty_p): new function. mark an image
14176 instance, plus all of its parents, as dirty.
14177 (Fset_image_instance_property): use it.
14178 (Fglyph_animated_timeout_handler): use it.
14179 (update_subwindow): call update_widget and device methods for
14180 update_subwindow. Mark all changed flags as clean.
14181 (Fresize_subwindow): mark size as changed.
14183 * glyphs-x.c (x_finalize_image_instance): try and detect gc
14185 (x_update_subwindow): only resize subwindows here.
14186 (x_update_widget): new function. Update all changed properties of
14188 (x_resize_subwindow): deleted.
14189 (x_widget_set_property): deleted.
14190 (x_progress_gauge_set_property): deleted.
14191 (x_progress_gauge_update): new function. Implement recorded
14193 (x_tab_control_update): ditto.
14194 (x_tab_control_set_property): deleted.
14195 (console_type_create_glyphs_x): declare new functions.
14196 (image_instantiator_format_create_glyphs_x): ditto.
14198 * glyphs-widget.c (widget_set_property): mark text changed.
14199 (update_widget): new function. Update properties of a widget.
14200 (widget_instantiate): for layouts make sure we set their
14201 children's parent correctly.
14202 (tab_control_set_property): new function. Record changes that will
14203 take place under redisplay's control.
14204 (progress_gauge_set_property): ditto.
14205 (image_instantiator_progress_guage): declare new functions.
14206 (image_instantiator_tab_control): ditto.
14208 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14210 (mswindows_update_widget): new function. Update all properties on
14211 a widget that have changed.
14212 (mswindows_button_update): new function. Update a button's set
14214 (mswindows_tab_control_update): new function. Update the items in
14216 (mswindows_tab_control_set_property): deleted.
14217 (mswindows_progress_gauge_update): new function. Update the
14218 progress gauge's progress.
14219 (mswindows_widget_set_property): deleted. This is all done
14220 asynchronously now.
14221 (mswindows_progress_gauge_set_property): ditto.
14222 (console_type_create_glyphs_mswindows): declare new methods.
14223 (image_instantiator_format_create_glyphs_mswindows): ditto.
14225 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14226 (msprinter_set_frame_properties): ditto.
14228 * console.h (struct console_methods): Add update_widget_method.
14230 2000-02-09 Andy Piper <andy@xemacs.org>
14232 * gui-msw.c (Fmswindows_shell_execute): Make
14233 mswindows-shell-execute industrial strength.
14235 2000-02-08 Martin Buchholz <martin@xemacs.org>
14237 * lrecord.h: Make macro argument `props' match member function `plist'.
14240 * fns.c (Fremprop):
14241 * fns.c (Fobject_plist):
14244 Object property list frobbing cleanup.
14245 - Allow any lisp object (compared with `eq'), not just symbols, as
14246 keys in object plists.
14247 - Move symbol plist frobbing into symbols.c, where it belongs.
14248 - Move string plist frobbing into alloc.c, where it belongs.
14249 - Everything's an lrecord now, so no need to test for symbolp, etc.
14250 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14252 * extents.c: Reorder code to remove declarations.
14254 * frame.h (store_in_alist): Remove useless declaration.
14256 2000-02-07 Martin Buchholz <martin@xemacs.org>
14258 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14259 * config.h.in: Add HAVE_XCONVERTCASE.
14261 2000-02-07 Andy Piper <andy@xemacs.org>
14263 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14264 it breaks many things.
14266 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
14268 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14269 actually can start a common comment type.
14270 * src/syntax.h (SYNTAX_END_P): ditto for end.
14272 2000-02-07 Martin Buchholz <martin@xemacs.org>
14274 * XEmacs 21.2.28 is released.
14276 2000-02-06 Martin Buchholz <martin@xemacs.org>
14278 * event-Xt.c (x_keysym_to_character): New.
14279 (maybe_define_x_key_as_self_inserting_character): New.
14280 (x_has_keysym): New.
14281 Auto-define all keys on the keyboard as self-insert-key.
14283 2000-02-02 Martin Buchholz <martin@xemacs.org>
14285 * menubar.c (vars_of_menubar): A small code simplification.
14287 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14290 * ExternalClient.c:
14291 * EmacsShell-sub.c:
14294 Use consistent style for specifying X resources.
14296 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14297 This makes (dontusethis-set-symbol-value-handler) actually usable.
14299 * lrecord.h (lrecord_decription_type):
14300 * alloc.c (pdump_register_sub):
14303 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14304 Comply with XEmacs coding style.
14305 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14306 args, and XD_LISP_OBJECT_ARRAY with 3 args.
14308 * keymap.c (Faccessible_keymaps):
14309 Make (accessible-keymaps map "\C-h") do the Right Thing.
14310 Make (accessible-keymaps map []) do the Right Thing.
14311 Make (accessible-keymaps map "") do the Right Thing.
14312 (check_keymap_definition_loop): New function.
14313 (keymap_store_internal): Keep luser from shooting self in foot,
14314 via (define-key ctl-x-4-map "p" global-map).
14315 Remove fullness slot from struct Lisp_Keymap, since hash tables
14317 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14319 2000-01-30 Martin Buchholz <martin@xemacs.org>
14321 * redisplay.c (init_redisplay): Fix small memory leak.
14323 * elhash.c (pdump_reorganize_hash_table):
14324 Rename from reorganize_hash_table. Change prototype.
14325 Reuse the original memory for hentries. Save 100k.
14326 * alloc.c (PDUMP_READ): new macro.
14327 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14328 * alloc.c: No need to #ifndef before #undef.
14330 * print.c: Allow debug_print() to print readably by modifying
14331 debug_print_readably. Use consistent variable names.
14333 * .dbxrc: Try to get things to work even if stopped in a function
14334 without source available by explicitly specifying source files.
14335 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14337 * unexnt.c (_start): Removed bogus code which caused loading heap
14338 from differrent executable file.
14339 Removed bogus assignment to _fmode, which caused inconsistencies.
14341 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14343 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14344 Have spawnve encapsulation regard DONT_ENCAPSULATE.
14345 Do not preliminary `#define signal sigset'.
14347 * systime.h: Do not prototype environ on windows nt and cygwin,
14348 this conflicts with system header.
14350 * syssignal.h: Use correct define for WINDOWSNT
14352 * sysdep.h: Do not prototype environ on windows nt, this conflicts
14353 with system header.
14355 * sysdep.c (near start of file): Fixed commentary and rearranged
14356 ifdefs in readable order.
14357 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14360 (end_of_data): Do not compile in if using PDUMP.
14362 * symsinit.h: Prototyped vars_of_nt().
14364 * ntproc.c (windows9x_p): Added, instead of os_subtype.
14365 (find_child_console): Use it.
14366 (sys_kill): Use it.
14368 * ntheap.h: Do not extern os_subtype.
14370 * ntheap.c (cache_system_info): Do not cache unneeded:
14371 nt_major_version, nt_minor_version and os_subtype.
14372 (recreate_heap): Do not compile in when PDUMPing.
14374 * nt.c (geteuid and friends): Use the new varibale
14375 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14376 (init_user_info): Removed the above mentioned hackery.
14377 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14378 stat has been fixed in the C runtime.
14379 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14381 * file-coding.c (struct file_coding_dump): Do not define
14382 ucs_to_mule_table in the struct if not MULE.
14383 (struct struct lrecord_description fcd_description_1): Do not dump
14386 * emacs.c (main_1): Call vars_of_nt().
14387 (right before Fdump_emacs_data): Don't need lastfile if using both
14388 portabe dumper and system malloc.
14390 * alloc.c (Fmemory_limit): Conditionalized out.
14391 (pdump): Use OPEN_BINARY for the portable dump file.
14392 (pdump_load): Ditto.
14394 2000-02-02 Mike Alexander <mta@arbortext.com>
14396 * nt.c (convert_time): Set tm_isdst before calling mktime and
14397 avoid calling it at all if the compiler supports 64 bit integers.
14398 Also initialize utc_base_ft before using it.
14400 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
14402 * frame.c (change_frame_size_1): Take f->internal_border_width
14403 into consideration when calculating the width of the frame.
14405 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14407 * window.c (frame_min_height):
14408 (frame_size_valid_p):
14409 (frame_pixsize_valid_p): Added.
14410 (check_frame_size): Generalized.
14412 * window.h: Prototyped the above.
14415 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14416 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14417 Deleted Vwin32_* and Vbinary_process_* unused variables.
14419 * device-msw.c (msprinter_init_device): Do not get printer font
14420 list; Added DEVMODE functions.
14422 * frame-msw.c: Added lots of printer code.
14424 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14427 * console-msw.h: Added more msprinter device private slots.
14429 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14431 * event-msw.c (key_needs_default_processing_p): Added.
14432 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14434 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14436 * glyphs.c (image_instance_layout): Mark image instance as clean
14438 (glyph_dirty_p): Removed redundant function.
14439 (invalidate_glyph_geometry_maybe): Added.
14440 (update_glyph_cachel_data): Call it.
14442 * glyphs.h: Prototyped it.
14444 * redisplay.c (add_glyph_rune): Call it.
14445 (redisplay_window): Reset glyphs cachels when frame faces have
14446 changed, thus forcing recomputation of built-in border glyphs.
14448 2000-01-30 Martin Buchholz <martin@xemacs.org>
14450 * Makefile.in.in: Make portable dumper and purify play well together.
14451 Add imperfect, but better than nothing, support for pdump.
14452 Remove xemacs.dmp when temacs is re-generated.
14453 Don't ignore errors when dumping xemacs.
14455 * symbols.c (maybe_call_magic_handler): Remove one magic number.
14457 2000-01-28 Andy Piper <andy@xemacs.org>
14459 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14460 (setup_normal_frame): ditto.
14461 (setup_frame_without_minibuffer): ditto.
14462 (setup_minibuffer_frame): ditto.
14463 (delete_frame_internal): ditto.
14464 (Fmake_frame_invisible): ditto.
14465 (Ficonify_frame): ditto.
14467 * window.h: change Fset_window_buffer signature.
14469 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14470 (Fset_window_buffer): allow recording of buffer if the window is
14471 the selected window.
14472 (window_loop): Use new Fset_window signature.
14474 2000-01-23 Daniel Pittman <daniel@danann.net>
14476 * config.h.in: Added template for `HAVE_ATHENA_3D'
14478 2000-01-29 Andy Piper <andy@xemacs.org>
14480 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14482 * gutter.c (output_gutter): Don't output if the window isn't live.
14484 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14486 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14487 of 01/12/00: Moved SetFocus back here where it belongs.
14489 2000-01-23 Andy Piper <andy@xemacs.org>
14491 * s/cygwin32.h: declare printer things.
14493 2000-01-26 Andy Piper <andy@xemacs.org>
14495 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14498 2000-01-24 Andy Piper <andy@xemacs.org>
14500 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14501 (mswindows_button_instantiate): Make sure glyph is a pixmap.
14503 * glyphs-widget.c (widget_instantiate): Avoid shadows.
14505 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14507 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14509 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14510 (mswindows_output_display_block): Avoid local shadows.
14512 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14513 (mswindows_enqueue_mouse_button_event): ditto.
14514 (mswindows_handle_gui_wm_command): remove declaration.
14516 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14519 * console-msw.h: Avoid shadows.
14520 (mswindows_get_toolbar_button_text):
14521 (emacs_mswindows_create_stream_pair):
14522 (emacs_mswindows_delete_stream_pair):
14523 (mswindows_handle_toolbar_wm_command): declare.
14525 * device-msw.c (build_syscolor_string): Avoid shadows.
14527 2000-01-23 Andy Piper <andy@xemacs.org>
14529 * glyphs-widget.c (widget_instantiate): reverse the items for
14530 layouts so that children are in the expected order.
14532 2000-01-28 Martin Buchholz <martin@xemacs.org>
14534 * ralloc.c: safe_bcopy ==> memmove
14535 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14536 * s/msdos.h: Remove BCOPY macros.
14537 * insdel.c (gap_right): Remove BCOPY conditional code.
14538 * insdel.c (gap_left): Remove BCOPY conditional code.
14539 XEmacs demands a working ANSI C compiler - hence memmove.
14541 * regex.c (regex_compile): Remove accidental use of trigraphs.
14543 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14545 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14548 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14550 * event-msw.c (mswindows_drain_windows_queue): Added the
14552 (mswindows_need_event): Commented the call to
14553 mswindows_drain_windows_queue().
14554 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14557 * console-msw.h: Moved a few function prototypes here from
14560 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14561 parameter from unsigned short to unsigned long.
14562 (Fmswindows_shell_execute): Added return value.
14564 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14566 * sysdep.c (init_system_name):
14567 process-unix.c (unix_canonicalized_host_name):
14568 Don't call freeaddrinfo() if getaddrinfo() fails.
14570 * process-unix.c (unix_open_unix_network_stream):
14571 Moved the code to get a port # into address loop.
14573 2000-01-27 Martin Buchholz <martin@xemacs.org>
14575 * buffer.c (reinit_vars_of_buffer):
14576 The right place to initialize conversion_in_dynarr and
14577 conversion_out_dynarr.
14579 * alloc.c (pdump): Use the real open() till sys_open() is functional.
14581 * process-unix.c (unix_canonicalize_host_name): Muleize.
14582 (unix_open_network_stream): Muleize.
14584 * buffer.h: Fix up prototypes for ralloc.c functions.
14586 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14587 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14588 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14589 instead of gethostbyname()
14590 * process-unix.c: In unix_canonicalize_host_name() and
14591 unix_open_network_stream(), add code to use getaddrinfo()
14592 instead of gethostbyname().
14594 2000-01-27 Daniel Pittman <daniel@danann.net>
14596 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14597 libs when built with flat Athena.
14599 2000-01-27 Martin Buchholz <martin@xemacs.org>
14601 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14602 Use coding standards for function prototypes.
14604 2000-01-25 Martin Buchholz <martin@xemacs.org>
14606 * dialog-msw.c (push_lisp_string_as_unicode):
14607 * doc.c (unparesseuxify_doc_string):
14608 * dired.c (Fuser_name_completion_1):
14609 * dired.c (Fuser_name_all_completions):
14610 * dired.c (free_user_cache):
14611 * dired.c (user_name_completion):
14612 * console-x.c (get_display_arg_connection):
14613 * minibuf.c (clear_echo_area_internal):
14614 * minibuf.c (echo_area_append):
14615 * eldap.c (Fldap_open):
14616 * eldap.c (Fldap_search_internal):
14617 * frame-x.c (x_set_frame_text_value):
14618 * frame-x.c (x_set_frame_properties):
14619 * frame-x.c (x_create_widgets):
14620 * redisplay-tty.c (term_get_fkeys_1):
14621 * objects-x.c (x_parse_nearest_color):
14622 * objects-x.c (x_valid_color_name_p):
14623 * objects-x.c (x_initialize_font_instance):
14624 * objects-x.c (x_list_fonts):
14625 * objects-x.c (x_find_charset_font):
14626 * tooltalk.c (Fadd_tooltalk_message_arg):
14627 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14628 * tooltalk.c (Fadd_tooltalk_pattern_arg):
14629 * process-unix.c (unix_create_process):
14630 * ntproc.c (sys_spawnve):
14631 * sound.c (Fplay_sound_file):
14632 * sound.c (Fplay_sound):
14633 * buffer.c (init_initial_directory):
14634 * buffer.c (init_buffer):
14635 * editfns.c (init_editfns):
14636 * editfns.c (Ftemp_directory):
14637 * editfns.c (Fuser_full_name):
14638 * editfns.c (uncache_home_directory):
14639 * editfns.c (get_home_directory):
14640 * editfns.c (Fuser_home_directory):
14641 * editfns.c (Fformat_time_string):
14642 * editfns.c (Fcurrent_time_string):
14643 * gui-x.c (button_item_to_widget_value):
14644 * database.c (Fopen_database):
14645 * event-Xt.c (x_to_emacs_keysym):
14646 * event-Xt.c (x_event_to_emacs_event):
14647 * event-Xt.c (describe_event_window):
14648 * event-msw.c (mswindows_wnd_proc):
14649 * glyphs-eimage.c (jpeg_instantiate):
14650 * glyphs-eimage.c (gif_instantiate):
14651 * glyphs-eimage.c (png_instantiate):
14652 * glyphs-eimage.c (tiff_instantiate):
14653 * glyphs-x.c (xbm_instantiate_1):
14654 * glyphs-x.c (x_xbm_instantiate):
14655 * glyphs-x.c (x_xface_instantiate):
14656 * glyphs-x.c (autodetect_instantiate):
14657 * glyphs-x.c (cursor_font_instantiate):
14658 * glyphs-x.c (x_widget_instantiate):
14659 * glyphs-x.c (x_widget_set_property):
14660 * glyphs-x.c (x_widget_property):
14661 * glyphs-x.c (BUILD_GLYPH_INST):
14662 * print.c (write_string_to_stdio_stream):
14663 * print.c (output_string):
14664 * print.c (Falternate_debugging_output):
14665 * print.c (Fexternal_debugging_output):
14666 * glyphs-msw.c (extract_xpm_color_names):
14667 * glyphs-msw.c (mswindows_xpm_instantiate):
14668 * glyphs-msw.c (bmp_instantiate):
14669 * glyphs-msw.c (resource_name_to_resource):
14670 * glyphs-msw.c (mswindows_resource_instantiate):
14671 * glyphs-msw.c (xbm_instantiate_1):
14672 * glyphs-msw.c (mswindows_xbm_instantiate):
14673 * glyphs-msw.c (mswindows_xface_instantiate):
14674 * glyphs-msw.c (mswindows_widget_instantiate):
14675 * glyphs-msw.c (add_tree_item):
14676 * glyphs-msw.c (add_tab_item):
14677 * glyphs-msw.c (mswindows_combo_box_instantiate):
14678 * glyphs-msw.c (mswindows_widget_property):
14679 * glyphs-msw.c (mswindows_combo_box_property):
14680 * glyphs-msw.c (mswindows_widget_set_property):
14681 * console.c (stuff_buffered_input):
14682 * objects-msw.c (mswindows_initialize_color_instance):
14683 * objects-msw.c (mswindows_valid_color_name_p):
14684 * objects-msw.c (mswindows_list_fonts):
14685 * objects-msw.c (mswindows_font_instance_truename):
14686 * bytecode.c (optimize_compiled_function):
14687 * select-x.c (symbol_to_x_atom):
14688 * select-x.c (x_atom_to_symbol):
14689 * select-x.c (hack_motif_clipboard_selection):
14690 * select-x.c (selection_data_to_lisp_data):
14691 * select-x.c (lisp_data_to_selection_data):
14692 * select-x.c (Fx_get_cutbuffer_internal):
14693 * select-x.c (Fx_store_cutbuffer_internal):
14694 * buffer.h (TO_EXTERNAL_FORMAT): New function.
14695 * buffer.h (TO_INTERNAL_FORMAT): New function.
14696 * emacs.c (make_arg_list_1):
14697 * emacs.c (make_argc_argv):
14698 * emacs.c (main_1):
14699 * emacs.c (Fdump_emacs):
14700 * emacs.c (split_string_by_emchar_1):
14705 * device-x.c (x_init_device):
14706 * device-x.c (Fx_valid_keysym_name_p):
14707 * device-x.c (Fx_get_font_path):
14708 * device-x.c (Fx_set_font_path):
14709 * glyphs.c (bitmap_to_lisp_data):
14710 * glyphs.c (pixmap_to_lisp_data):
14711 * alloc.c (make_ext_string): Use coding system arguments. Update
14713 * alloc.c (build_string):
14714 * callproc.c (child_setup):
14715 * callproc.c (init_callproc):
14716 * fileio.c (lisp_strerror):
14717 * fileio.c (directory_file_name):
14718 * fileio.c (Fexpand_file_name):
14719 * fileio.c (Ffile_truename):
14720 * fileio.c (Fsysnetunam):
14721 * fileio.c (Fdo_auto_save):
14722 * sysdep.c (sys_readdir):
14723 * tests.c: New file. Allow adding C tests.
14724 Replace GET_* macros with a more comprehensible and flexible
14725 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14727 Any coding system can be used to do format conversion.
14728 Eliminate enum external_data_format.
14729 Eliminate convert_to_external_format.
14730 Eliminate convert_to_internal_format.
14731 Make sure file-name, keyboard, terminal, and ctext are always
14732 defined as coding systems or aliases. Make
14733 file-name-coding-system, terminal-coding-system, and
14734 keyboard-coding-system magical variables that are equivalent to
14735 defining the corresponding coding system aliases.
14737 * file-coding.c (Fcoding_system_canonical_name_p): New function.
14738 * file-coding.c (Fcoding_system_alias_p): New function.
14739 * file-coding.c (Fcoding_system_aliasee): New function.
14740 * file-coding.c (append_suffix_to_symbol): New function.
14741 * file-coding.c (dangling_coding_system_alias_p): New function.
14742 * file-coding.c (Ffind_coding_system):
14743 * file-coding.c (Fcopy_coding_system):
14744 * file-coding.c (encode_coding_no_conversion):
14745 * file-coding.c (syms_of_file_coding):
14746 * file-coding.c (vars_of_file_coding):
14747 Rewrite coding system alias code.
14748 Allow nested aliases, like symbolic links.
14749 Allow redefinition of coding system aliases.
14750 Prevent existence of dangling coding system aliases.
14752 * dired.c (Fuser_name_completion_1):
14753 * dired.c (Fuser_name_all_completions):
14754 A crash would happen if user did QUIT in the middle of building
14755 user_name_cache. Remove redundant code in mainline and unwind_protect.
14758 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
14760 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14761 an unsigned char *. Update all callers.
14763 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14765 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14767 2000-01-25 Martin Buchholz <martin@xemacs.org>
14769 * elhash.c (hentry_description): Use more portable definition.
14770 (resize_hash_table): Initialize new hentries using
14771 xnew_array_and_zero, thereby simplifying the code.
14773 * mule-charset.c (make_charset): Make sure entire object is
14774 initialized, to avoid Purify warnings.
14776 * alloc.c (resize_string): Fix unlikely crash with big strings.
14778 2000-01-24 Martin Buchholz <martin@xemacs.org>
14780 * realpath.c (xrealpath):
14781 Don't call getwd().
14783 2000-01-25 Martin Buchholz <martin@xemacs.org>
14785 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14787 1999-12-28 Max Matveev <max@melbourne.sgi.com>
14789 * unexelfsgi.c (unexec): Change the way we decide which segment
14790 should be extended.
14792 Assumption that .bss section should be outside the PT_LOADable
14793 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14794 it's present) is inside the 'data' segment. This would fail the
14795 test which was used to find a segment to grow and cover new
14796 heap. Instead of this assumption, I created another one - on IRIX
14797 the segment to grow should start below .bss and it's address
14798 should extent above the end of .bss. Once this segment is
14799 identified, it's grown to accommodate the new heap and new
14800 zero-length .bss section is added at the end of .data2.
14802 2000-01-25 Martin Buchholz <martin@xemacs.org>
14804 * eval.c (Feval): Wrong number of arguments should use original
14805 function, not the indirect_function version of it.
14807 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
14809 * glyphs-x.c (x_button_instantiate): Don't add image if
14810 it is not a pixmap.
14811 (x_locate_pixmap_file): Call Fexpand_file_name when file name
14814 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
14816 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14818 (DEFVAR_INT_MAGIC): Ditto.
14819 (DEFVAR_BOOL_MAGIC): Ditto.
14820 * glyphs.h: Reindent backslash.
14822 2000-01-24 Martin Buchholz <martin@xemacs.org>
14824 * glyphs-widget.c (layout_query_geometry):
14825 (layout_layout): Use correct types for gheight, gwidth.
14827 2000-01-24 Martin Buchholz <martin@xemacs.org>
14829 * EmacsManager.c (QueryGeometry): Purified.
14831 2000-01-23 Martin Buchholz <martin@xemacs.org>
14833 * alloc.c (make_float): Make sure entire object is initialized, to
14834 avoid Purify warnings.
14835 (pdump_register_sub): Remove useless assignment.
14836 (pdump): Use xmalloc, not malloc.
14837 (pdump_load): Use xmalloc, not malloc.
14839 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14846 * sysdep.c: Removed redundant #include <windows.h>
14848 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14850 * frame.c (delete_frame_internal): Do not delete device when its
14851 implementation so declares.
14852 (delete_frame_internal): Set device selected frame to nil when
14853 last frame goes away.
14855 * device-msw.c (msprinter_device_system_metrics): Implemented.
14856 (mswindows_device_system_metrics): Added 'device-dpi property.
14858 * device.c: (Fdevice_printer_p): Added.
14859 Added 'offset-workspace device metric.
14861 * console.h (device_metrics): Declared DM_offset_workspace.
14863 2000-01-23 Martin Buchholz <martin@xemacs.org>
14865 * fileio.c (Ffile_truename): Remove pointless and confusing
14866 initialization of elen.
14868 * glyphs-widget.c: Compiler warning fixes.
14870 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
14872 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14873 instead of a Lisp_Object as argument to make it consistent with
14874 the other LIVE_P macros.
14875 (CHECK_LIVE_PROCESS): New macro.
14877 * process.c: Declare Qprocess_live_p.
14878 (Fprocess_live_p): New function.
14879 (create_process): Use PROCESS_LIVE_P.
14880 (read_process_output): Ditto.
14881 (set_process_filter): Ditto.
14882 (Fdelete_process): Ditto.
14883 (kill_buffer_processes): Ditto
14884 (process_send_signal): Use CHECK_LIVE_PROCESS.
14885 (Fprocess_input_coding_system): Check whether process is still
14886 alive (fix PR#1061).
14887 (Fprocess_output_coding_system): Ditto.
14888 (Fprocess_coding_system): Ditto.
14889 (Fset_process_input_coding_system): Ditto.
14890 (Fset_process_output_coding_system): Ditto.
14892 2000-01-23 Andy Piper <andy@xemacs.org>
14894 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14897 * glyphs.c (mark_image_instance): take into account changed
14898 image_instance format.
14899 (image_instance_equal): ditto.
14900 (image_instance_hash): ditto.
14902 * glyphs-widget.c (widget_instantiate): Incorporate layout
14903 instantiation here. Delay layout of the layout until later.
14904 (layout_instantiate): deleted.
14905 (layout_query_geometry): new function. get the geometry of a
14907 (layout_layout): layout a layout dynamically.
14908 (image_instantiator_widget): New function - splitting up
14909 image_instantiator_format_create_glyphs_widget for netwinder
14911 (image_instantiator_buttons):
14912 (image_instantiator_edit_fields):
14913 (image_instantiator_combo_box):
14914 (image_instantiator_scrollbar):
14915 (image_instantiator_progress_guage):
14916 (image_instantiator_tree_view):
14917 (image_instantiator_tab_control):
14918 (image_instantiator_labels):
14919 (image_instantiator_layout): ditto.
14920 (image_instantiator_format_create_glyphs_widget): Call preceding
14923 2000-01-22 Martin Buchholz <martin@xemacs.org>
14925 * process.c (Fset_process_coding_system):
14926 * device-x.c (Fx_keysym_hash_table):
14929 * lstream.c (Lstream_write): Return documented value, not 0.
14931 * fileio.c (directory_file_name):
14932 (Fsubstitute_in_file_name):
14933 (Fsubstitute_insert_file_contents_internal):
14934 (Fwrite_region_internal):
14939 Remove vestigial APOLLO-conditional code.
14941 2000-01-21 Martin Buchholz <martin@xemacs.org>
14943 * getpagesize.h: Add guard macros.
14944 * libsst.h: Add guard macros.
14945 * libst.h: Add guard macros.
14946 * line-number.h: Add guard macros.
14947 * ndir.h: Add guard macros.
14948 * sysfloat.h: Add guard macros.
14949 * sysfile.h: Add guard macros.
14950 * sysproc.h: Add guard macros.
14951 * syswait.h: Add guard macros.
14952 * xintrinsic.h: Add guard macros.
14953 * xintrinsicp.h: Add guard macros.
14954 * xmmanager.h: Add guard macros.
14955 * xmmanagerp.h: Add guard macros.
14956 * xmprimitive.h: Add guard macros.
14957 * xmu.h: Add guard macros.
14958 * gpmevent.h: Add copyright statement. Add guard macros.
14959 * miscplay.h: Add guard macros.
14960 * *.h: Use consistent C-standards-approved guard macro names.
14962 * opaque.c (make_opaque): Switch parameter order.
14963 * opaque.h (make_opaque): Switch parameter order.
14964 Update all callers.
14965 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14967 * config.h.in (type_checking_assert): Added.
14968 (bufpos_checking_assert): Added.
14970 2000-01-21 Martin Buchholz <martin@xemacs.org>
14972 * alloc.c: Harmless pdump changes.
14974 - spell alignment correctly.
14975 * sysdep.c: Use countof()
14977 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
14979 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14980 initially_selected_for_input() console method, default to 0.
14981 (semi_canonicalize_console_connection): Try to delegate to
14982 canonicalize_console_connection if no such console method.
14983 (canonicalize_console_connection): Vice versa.
14984 (print_console): Do not print nil connection.
14986 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14987 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14988 (XDEVIMPF_FRAMELESS_OK): Added.
14989 (CONSOLE_INHERITS_METHOD): Added.
14991 * console-msw.c (mswindows_canonicalize_console_connection):
14993 (mswindows_canonicalize_device_connection): Added.
14995 * console-msw.h (struct msprinter_device): Added this struct and
14997 (mswindows_device): Made fontlist a lisp object.
14999 * device.c (semi_canonicalize_device_connection): Try to delegate
15000 to canonicalize_device_connection if no such console method.
15001 (canonicalize_device_connection): Vice versa.
15002 (print_device): Do not print nil connection.
15004 * device-msw.c (mswindows_init_device): Call InitCommonControls
15006 (mswindows_delete_device): Removed fontlist deallocation.
15007 (mswindows_mark_device): Added.
15009 * events.c (event_equal): Added abort() at unreached code.
15010 (event_hash): Ditto.
15012 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15013 fallback tags of Windows devices.
15015 * general.c (syms_of_general): Initialized Qmsprinter.
15017 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15018 of fallback tags of Windows devices.
15020 * lisp.h: Declared Qmsprinter.
15022 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15024 (mswindows_list_fonts): Ditto.
15025 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15026 that it can be used by both mswindows and msprinter devices.
15027 (initialize_font_instance): Added.
15028 (mswindows_initialize_font_instance): Use it.
15029 (msprinter_initialize_font_instance): Added.
15031 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15032 and implementation flags check.
15033 (redisplay_without_hooks): Changed the call to the above.
15034 (Fredraw_device): Ditto.
15035 (Fredisplay_device): Ditto.
15037 * redisplay-msw.c (get_frame_dc): Implemented.
15038 (get_frame_compdc): Implemented.
15039 (many functions): Use the two functions above to get device
15040 contexts, ether for a window or a printer.
15042 2000-01-21 Olivier Galibert <galibert@pobox.com>
15044 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15045 initialization here.
15046 (init_symbols_once_early): Call it.
15047 * emacs.c (main_1): Call it.
15048 * symsinit.h: Declare it.
15050 2000-01-19 Olivier Galibert <galibert@pobox.com>
15052 * alloc.c: Use a lrecord_header * in the backtrace instead of a
15054 (pdump_backtrace): Ditto.
15055 (pdump_register_object): Ditto. Cleanup use of the pointers.
15056 (pdump_get_entry): Abort if trying to register a null pointer.
15057 (pdump_dump_data): Cleanup types when relocating.
15058 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15059 (pdump_dump_rtables): Remove bad casts.
15060 (pdump_load): Cleanup relocation w.r.t union type. Use a
15061 Lisp_Object instead of a EMACS_INT for the hashtable
15064 2000-01-20 Martin Buchholz <martin@xemacs.org>
15066 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15068 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15070 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15072 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15074 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15076 * faces.h (FACE_STRIKETHRU_P): Added.
15078 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15081 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15082 (mswindows_set_dc_font): New function, aware of font variants,
15083 separated from mswindows_update_dc.
15085 * objects-msw.h (struct mswindows_font_instance_data): Added
15088 * objects-msw.c (mswindows_finalize_font_instance): Delete all
15089 cached fonts and the data structure.
15090 (mswindows_initialize_font_instance): Added creation of font data
15092 (mswindows_print_font_instance): Print at least something.
15093 (mswindows_create_font_variant): Implemented.
15094 (mswindows_get_hfont): Implemented.
15096 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
15098 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15099 prototyping problem with msvc.
15101 * emacs.c (main_1): added syms_of_gui_mswindows() call
15103 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15104 syms_of_gui_mswindows() function
15106 * symsinit.h: added the prototype for syms_of_gui_mswindows()
15108 2000-01-18 Martin Buchholz <martin@xemacs.org>
15110 * XEmacs 21.2.27 is released.
15112 2000-01-18 Martin Buchholz <martin@xemacs.org>
15114 * glyphs-eimage.c (struct tiff_error_struct):
15116 (tiff_warning_func):
15117 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15122 * unexec.c: Remove vestigial Lucid C code.
15126 * libsst.c: Ansify.
15127 Remove declarations of errno and strerror().
15129 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
15131 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15133 2000-01-16 Martin Buchholz <martin@xemacs.org>
15135 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15138 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15143 Change enum eol_type to eol_type_t.
15145 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15147 * gui.c (get_gui_callback): Check cons before accessing car.
15149 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15151 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15152 (XSETSPECIFIER_TYPE): Ditto.
15154 2000-01-17 Didier Verna <didier@xemacs.org>
15156 * redisplay.c (generate_fstring_runes): compute string size in
15157 characters, not bytes.
15159 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15161 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15163 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
15165 * print.c (print_error_message): Call print_prepare().
15167 2000-01-14 Martin Buchholz <martin@xemacs.org>
15169 * .dbxrc: Renamed from dbxrc.
15171 * events.c (event_to_character):
15172 Use `assert (foo)' instead of `if (!foo) abort()'
15174 * .gdbinit (xtype): Add documentation.
15175 * .gdbinit (check-temacs): New function.
15176 * .gdbinit (check-xemacs): New function.
15177 * dbxrc (check-xemacs): New function.
15178 * dbxrc (check-xemacs): New function.
15180 2000-01-14 Andy Piper <andy@xemacs.org>
15182 * glyphs-widget.c (widget_query_geometry): Make sure that we
15183 calculate default dimensions correctly.
15185 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15187 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15189 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15190 pdump_wire'd variable.
15192 * emacs.c: (main_1): Conditionalized calls to
15193 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15195 2000-01-13 Martin Buchholz <martin@xemacs.org>
15197 * window.c (Fset_window_configuration):
15198 * sysdep.c (_start):
15199 * input-method-motif.c (res):
15200 * event-Xt.c (Xt_process_to_emacs_event):
15201 Simple compiler warning fixes.
15203 * bytecode.c (funcall_compiled_function): Use the original
15204 function symbol on the backtrace list in preference to the
15205 compiled_function object in error messages.
15207 2000-01-13 Andy Piper <andy@xemacs.org>
15209 * glyphs-x.c (update_widget_face): Make sure we update the widget
15210 background as well as foreground.
15212 2000-01-13 Andy Piper <andy@xemacs.org>
15214 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15215 fields to subwindow.
15216 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15217 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15218 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15219 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15221 * glyphs-widget.c (check_valid_tab_orientation): new function.
15222 (initialize_widget_image_instance): zero orientation and
15224 (widget_instantiate): pick up orientation.
15225 (tab_control_query_geometry): return appropriate values for
15228 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15229 appropriate creation flags for left, right and bottom tabs.
15231 * s/cygwin32.h: add tab definitions.
15233 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
15235 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15236 frame upon hiding a subwindow.
15237 (mswindows_button_instantiate): Changed the push button style to
15239 (mswindows_button_instantiate): Removed button BS_NOTIFY
15241 (mswindows_button_instantiate): Removed redundant check for
15242 a disabled gui item.
15243 (mswindows_button_instantiate): Made use of WS_TABSTOP
15244 consistent: "operable" controls (edit, button, tree, scroll) have
15245 this style, "display-only" ones (static, progress gauge) do
15246 not. This style is currently ignored by XEmacs though. Also,
15247 removed the WS_EX_CONTROLPARENT style - it is not for children,
15248 it is for their parents!
15249 (mswindows_edit_field_instantiate): Ditto.
15250 (mswindows_progress_gauge_instantiate): Ditto.
15251 (mswindows_tree_view_instantiate): Ditto.
15252 (mswindows_tab_control_instantiate): Ditto.
15253 (mswindows_scrollbar_instantiate): Ditto.
15254 (mswindows_combo_box_instantiate): Ditto.
15255 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15256 style to the "clip" window.
15257 (mswindows_button_instantiate): Removed compilation warning by
15258 equally typing terms of the ?: operator.
15260 2000-01-12 Didier Verna <didier@xemacs.org>
15262 * redisplay.c (generate_fstring_runes): new parameter holding the
15263 last modeline-format extent.
15264 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15265 extent, fill the glyph block with it.
15266 (generate_fstring_runes): handle these parameters.
15267 (generate_formatted_string_db): ditto.
15269 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15270 glyphs'extents in the modeline.
15272 1999-01-11 Mike Woolley <mike@bulsara.com>
15274 * ntheap.c: Reduced the reserved heap space from 1Gb down to
15275 256Mb, as a workaround for the non-starting problem many people
15278 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
15280 * console-tty.c (Fset_console_tty_output_coding_system):
15281 Force redrawing tty frame.
15283 2000-01-10 Didier Verna <didier@xemacs.org>
15285 * redisplay.c (generate_fstring_runes): fix size computation bug.
15287 2000-01-09 William M. Perry <wmperry@aventail.com>
15289 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15291 2000-01-09 Andy Piper <andy@xemacs.org>
15293 * glyphs-msw.c: index -> i to avoid shadows.
15294 (xbm_create_bitmap_from_data): make static.
15295 (check_valid_string_or_int): deleted.
15296 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15298 * glyphs-x.c (x_update_subwindow): remove unused args.
15300 * glyphs.c (glyph_image_instance): return the thing. Don't set the
15301 back pointer - this is done in allocate_image_instance.
15302 (query_string_font): return Qnil to make the compiler happy.
15303 (unmap_subwindow): set to ~0 to make the compiler happy.
15304 (glyph_query_geometry): comment out until used.
15305 (glyph_layout): ditto.
15307 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
15309 * insdel.c (signal_after_change): Remove extraneous unbind_to().