Kenichi Handa [Wed, 28 May 2003 11:35:50 +0000 (11:35 +0000)]
(kill_workbuf_unwind): New function.
(Finsert_file_contents): On replacing, call
make_conversion_work_buffer with correct args, and call
record_unwind_protect with the first arg kill_workbuf_unwind.
Dave Love [Fri, 23 May 2003 23:31:25 +0000 (23:31 +0000)]
(utf-16le, utf-16be-16be)
(utf-16le-with-signature, utf-16be-with-signature, utf-16):
Define :mime-text-unsuitable. `utf-16{b,l}e...' renamed from
`-16-{b,l}e-' and aliases defined for the old names.
Kenichi Handa [Tue, 20 May 2003 13:04:49 +0000 (13:04 +0000)]
(BASE_FONTSET_P): Check FONTSET_BASE, not
FONTSET_NAME.
(fontset_add): Fix for the case that TO is less than TO1.
(Ffontset_info): Don't use fallback fontset on checking the
default fontset.
(dump_fontset): New function for debugging.
Kenichi Handa [Tue, 6 May 2003 23:24:36 +0000 (23:24 +0000)]
(map_sub_char_table): New argument DEFAULT_VAL.
(map_char_table): Don't inherit the value from the parent on
initializing VAL. Adjusted for the above change.
Kenichi Handa [Tue, 6 May 2003 12:28:11 +0000 (12:28 +0000)]
(Qsignature, Qendian): Delete these variables.
(syms_of_coding): Don't initialize them.
(CATEGORY_MASK_UTF_16_AUTO): New macro.
(detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
detect_info->found.
(decode_coding_utf_16): Don't detect BOM here.
(encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
is NOT utf_16_without_bom.
(setup_coding_system): For a coding system of type utf-16, check
if the attribute :endian is Qbig or not (not nil or not), and set
CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
(detect_coding): If coding type is utf-16 and BOM detection is
required, detect it.
(Fdefine_coding_system_internal): For a coding system of type
utf-16, check if the attribute :endian is Qbig or not (not nil or
not).
Kenichi Handa [Tue, 6 May 2003 08:16:37 +0000 (08:16 +0000)]
(coding_set_source): Fix for the case that the current
buffer is different from coding->src_object.
(decode_coding_object): Don't use the conversion work buffer if
DST_OBJECT is a buffer.
(Vface_font_rescale_alist): Renamed from
Vface_resizing_fonts.
(struct font_name): Rename member resizing_ratio to rescale_ratio.
(font_rescale_ratio): Renamed from font_resizing_ratio.
(split_font_name): Set font->rescale_ratio.
(better_font_p): Pay attention to font->rescale_ratio.
(build_scalable_font_name): Likewise. Change RESX, and RESY
fields.
(syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp
variable.
Kenichi Handa [Fri, 28 Mar 2003 04:06:53 +0000 (04:06 +0000)]
(utf-16-le): Renamed from utf-16-le-nosig.
(utf-16-be): Renamed from utf-16-be-nosig.
(utf-16-le-with-sig): Renamed from utf-16-le.
(utf-16-be-with-sig): Renamed from utf-16-be.
(utf-16): Set :bom to (utf-16-le-with-sig . utf-16-be-with-sig).
Kenichi Handa [Thu, 30 Jan 2003 02:23:40 +0000 (02:23 +0000)]
(decode_coding_ccl, encode_coding_ccl): Call ccl_driver
with the last arg charset_list acquired from coding.
(Fdefine_coding_system_internal): For ccl-based coding system, fix
the attribute coding_attr_ccl_valids.
Kenichi Handa [Thu, 30 Jan 2003 02:19:06 +0000 (02:19 +0000)]
(CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
(ccl_driver): New arg CHARSET_LIST. Use the above macros instead
of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
(Fccl_execute): Call ccl_driver with the last arg Qnil.
(Fccl_execute_on_string): Likewise.
Kenichi Handa [Fri, 10 Jan 2003 07:42:08 +0000 (07:42 +0000)]
* HELLO: Fix upcase and downcase for several languages. Change
the two German lines into one. Change "Nederlangs" to
"Dutch (Nederlands)". Add original language names to several
entries.
Kenichi Handa [Fri, 10 Jan 2003 07:35:06 +0000 (07:35 +0000)]
Enable the default fontset to use
unicode fonts for ASCII characters.
(x-decompose-font-name): Don't try to resolve PATTERN by
x-resolve-font-name.
(x-complement-fontset-spec): Never prepend an ASCII font.
(create-fontset-from-fontset-spec): If a fontset of the same name
already exists, override it instead of signalling an error. Don't
turn `ascii' into `latin'. Don't update fontset-alias-alist here.
Kenichi Handa [Fri, 10 Jan 2003 07:25:31 +0000 (07:25 +0000)]
(print-fontset-element): New
function.
(print-fontset): Use print-fontset-element to print the elements
of a fontset. Use it also to print fonts fallen back to the
default fontsets.
Kenichi Handa [Fri, 10 Jan 2003 07:20:25 +0000 (07:20 +0000)]
(x_set_font, x_create_tip_frame): Adjusted to the change
of x_new_fontset.
(Fx_create_frame): Don't call x_new_fontset here. Just use
x_list_fonts to check the existence of fonts.
Kenichi Handa [Fri, 10 Jan 2003 07:13:43 +0000 (07:13 +0000)]
Give 8 extra slots to fontset objects.
(Qfontset_info): New variable.
(syms_of_fontset): Defsym it.
(FONTSET_FALLBACK): New macro.
(fontset_face): Try also the default fontset.
(make_fontset): Realize a fallback fontset from the default
fontset.
(generate_ascii_font_name): Moved from xfaces.c. Rewritten by
using split_font_name_into_vector and build_font_name_from_vector.
(Fset_fontset_font): Access the elements of font_spec by enum
FONT_SPEC_INDEX. If font_spec is a string, extract the registry
name by using split_font_name_into_vector.
(Fnew_fontset): If no ASCII font is specified in FONTLIST,
generate a proper font name from the fontset name. Update
Vfontset_alias_alist.
(n_auto_fontsets): New variable.
(new_fontset_from_font_name): New function.
(Ffont_info): Store the information about fonts generated from the
default fontset in the first extra slot of the returned
char-table.
Kenichi Handa [Fri, 10 Jan 2003 06:55:55 +0000 (06:55 +0000)]
(generate_ascii_font_name): Moved to fontset.c.
(font_name_registry): Function deleted.
(split_font_name_into_vector): New function.
(build_font_name_from_vector): New function.
(font_list): The argument REGISTRY is now a list of registry
names.
(choose_face_font): If we are choosing an ASCII font, and ATTRS
specifies an explicit font name, return the name as is. Make a
list of registy names.
Dave Love [Tue, 7 Jan 2003 18:06:43 +0000 (18:06 +0000)]
(find-coding-systems-for-charsets):
Use coding-system-type, coding-system-charset-list.
(standard-keyboard-coding-systems): Deleted.
(set-locale-environment): Maybe set keyboard coding system. Avoid
typical warning about codeset in C locale.
Kenichi Handa [Mon, 6 Jan 2003 13:26:04 +0000 (13:26 +0000)]
(char_table_ascii): Check if the char table contents
is sub-char-table or not.
(char_table_set): Fix argument to char_table_ascii.
(char_table_set_range): Likewise.