Kenichi Handa [Tue, 2 Dec 2003 01:40:27 +0000 (01:40 +0000)]
(enum iso_code_class_type): Delete ISO_carriage_return.
(CODING_GET_INFO): Delete argument eol_type. Callers changed.
(decode_coding_utf_8): Don't do eol converion.
(detect_coding_utf_16): Check coding->src_chars, not
coding->src_bytes. Add heuristics for those that have no
signature.
(decode_coding_emacs_mule): Don't do eol converion.
(decode_coding_iso_2022): Likewise.
(decode_coding_sjis): Likewise.
(decode_coding_big5): Likewise.
(decode_coding_charset): Likewise.
(adjust_coding_eol_type): Return a new coding system.
(detect_coding): Don't detect eol. Fix for utf-16 detection.
(decode_eol): In case of CRLF->LF conversion, use del_range_2 on
each change.
(decode_coding): Pay attention to undo_list. Do eol convesion for
all types of coding-systems (if necessary).
(Vcode_conversion_work_buf_list): Delete it.
(Vcode_conversion_reused_workbuf): Renamed from
Vcode_conversion_reused_work_buf.
(Vcode_conversion_workbuf_name): New variable.
(reused_workbuf_in_use): New variable.
(make_conversion_work_buffer): Delete the arg DEPTH.
(code_conversion_restore): Argument changed to cons.
(code_conversion_save): Delete the argument BUFFER. Callers
changed.
(detect_coding_system): New argument src_chars. Callers changed.
Fix for utf-16 detection.
(init_coding_once): Don't use ISO_carriage_return.
(syms_of_coding): Initialized Vcode_conversion_workbuf_name and
reused_workbuf_in_use.
Kenichi Handa [Tue, 25 Nov 2003 13:03:14 +0000 (13:03 +0000)]
(select-safe-coding-system): Fix for
the case that the first element of default-coding-system is t.
Fix a message when some coding systems are rejected.
Kenichi Handa [Mon, 17 Nov 2003 03:57:03 +0000 (03:57 +0000)]
(private-char-area-1-min)
(private-char-area-1-max, private-char-area-2-min)
(private-char-area-2-max, emacs-mule-charset-table): New
variables.
(convert-define-charset-argument): New function.
(define-charset): Handle the old calling style. Update
emacs-mule-charset-table.
(make-char-internal): New function.
Kenichi Handa [Thu, 13 Nov 2003 08:49:29 +0000 (08:49 +0000)]
* rfc2104.el (rfc2104-hexstring-to-byte-list): Renamed from
rfc2104-hexstring-to-bitstring and changed to return a byte list.
(rfc2104-hash): Convert the result of concat to unibyte string.
Kenichi Handa [Sat, 8 Nov 2003 00:54:53 +0000 (00:54 +0000)]
(set_fontset_font): New function.
(Fset_fontset_font): If a font is specified for a charset, use
map_charset_chars to store the font spec in a fontset.
Jason Rumney [Sun, 12 Oct 2003 22:55:45 +0000 (22:55 +0000)]
(GLYPHSET, WCRANGE): Define if system headers don't.
(pfnGetFontUnicodeRanges): New dynamically loaded function.
(w32_initialize): Try to load it.
(x_get_font_repertory): Use it if available.
(w32_encode_char): Add shortcut for unicode output.
Jason Rumney [Sun, 12 Oct 2003 22:47:33 +0000 (22:47 +0000)]
(w32_load_system_font): Default charset to -1.
(x_to_w32_charset): Match all fonts for unicode.
(w32_to_x_charset): New parameter; matching. Don't return partial or
wildcard charsets.
(w32_to_all_x_charsets): Don't return partial or wildcard charsets.
(w32_codepage_for_font): Return CP_UNICODE for unicode.
(w32_to_x_font): Match supplied charset to a real charset.
(enum_font_cb2): Always list unicode versions.
Jason Rumney [Sat, 11 Oct 2003 23:01:55 +0000 (23:01 +0000)]
(w32_encode_char): New charset parameter. font_info.encoding becomes
encoding_type.
(x_get_font_repertory): New function. Warning: stub only!
(x_new_font): Return quickly if font already set.
(x_new_fontset): fontsetname parameter is Lisp_Object. Use new
fs_query_fontset. Try new_fontset_from_font_name. Use fontset_name for
return value.
Jason Rumney [Sat, 11 Oct 2003 22:41:38 +0000 (22:41 +0000)]
(Fw32_set_clipboard_data): Use string_x_string_p in place of
find_charset_in_text. Use encode_coding_object in place of encode_coding.
(Fw32_get_clipboard_data): Use decode_coding_c_string in place of
decode_coding.
Jason Rumney [Sat, 11 Oct 2003 22:35:25 +0000 (22:35 +0000)]
(Fx_create_frame, x_create_tip_frame): Use new version of x_new_fontset.
(w32_load_system_font): Initialize charset as unicode.
font_info.encoding becomes encoding_type.
(w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
(x_to_w32_font): Use encode_coding_object in place of encode_coding.
(syms_of_w32fns): Set get_font_repertory_func.
Jason Rumney [Sat, 11 Oct 2003 22:24:47 +0000 (22:24 +0000)]
Include character.h. Use terminal_encode_buffer from term.c.
(write_glyphs): Use new version of encode_terminal_code. Use
encode_coding_object in place of encode_coding.
Kenichi Handa [Mon, 6 Oct 2003 11:19:39 +0000 (11:19 +0000)]
(string_xstring_p): Check by (C >= 0x100).
(find_charsets_in_text): Format of the arc CHARSETS changed. New
arg MULTIBYTE.
(Ffind_charset_region, Ffind_charset_string): Adjusted for the
change of find_charsets_in_text.
(Fsplit_char): Fix doc. Never return unknown.
Kenichi Handa [Thu, 2 Oct 2003 12:39:47 +0000 (12:39 +0000)]
(encode_terminal_code): Don't handle glyph-table. Check
if a character is encodable by the terminal coding system. If
not, produces proper number of `?'s. Update
terminal_encode_buffer and terminal_encode_buf_size if necessary.
(produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.