Commit graph

15866 commits

Author SHA1 Message Date
Kenichi Handa
f106f9b09c *** empty log message *** 2003-05-20 13:15:45 +00:00
Kenichi Handa
4187a77da7 (Fdefine_coding_system_internal): Fix for the case that
coding_type is Qcharset.
2003-05-20 13:05:14 +00:00
Kenichi Handa
e3400864d2 (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.
2003-05-20 13:04:49 +00:00
Kenichi Handa
ed7219f84b *** empty log message *** 2003-05-06 23:43:33 +00:00
Kenichi Handa
2f76e15eda (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.
2003-05-06 23:24:36 +00:00
Kenichi Handa
fd12904bd6 *** empty log message *** 2003-05-06 12:31:32 +00:00
Kenichi Handa
b49a1807a9 (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).
2003-05-06 12:28:11 +00:00
Kenichi Handa
bf470ae20f *** empty log message *** 2003-05-06 08:22:13 +00:00
Kenichi Handa
2cb2605761 (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.
2003-05-06 08:16:37 +00:00
Dave Love
da6b532cb0 Fix last change. 2003-05-04 15:46:26 +00:00
Dave Love
407a1f19be *** empty log message *** 2003-05-04 11:53:38 +00:00
Dave Love
1c2135a704 (read_emacs_mule_char) [len==2]: Index
emacs_mule_charset correctly.
2003-05-04 10:57:34 +00:00
Kenichi Handa
c64d66eb3a (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.
2003-04-09 08:35:07 +00:00
Kenichi Handa
880cf180d9 (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
(Qutf_16_le): Remove these variables.
(syms_of_coding): Don't DEFSYM them.
(decode_coding_utf_16): Fix handling of BOM.
(encode_coding_utf_16): Fix handling of BOM.
2003-03-28 04:09:32 +00:00
Kenichi Handa
afe6e43e81 *** empty log message *** 2003-03-14 07:58:54 +00:00
Kenichi Handa
2ba4877780 (Finsert_file_contents): On replacing, before decoding the file into
the work buffer, set point of the work buffer to the end.
2003-03-14 05:13:52 +00:00
Dave Love
eb1d57f054 *** empty log message *** 2003-02-13 22:46:33 +00:00
Dave Love
e1c2380488 (Fcheck_coding_systems_region): Fix type errors. 2003-02-13 22:23:01 +00:00
Dave Love
7258f1f737 *** empty log message *** 2003-02-04 19:29:56 +00:00
Dave Love
2f2c059ddc (XTread_socket): Check Lisp types for Vx_keysym_table
and fix C types.
2003-02-04 19:24:26 +00:00
Kenichi Handa
a82f924203 (SKIP_GLYPHS): New macro.
(set_cursor_from_row): Pay attention to string display properties.
2003-01-31 06:11:29 +00:00
Kenichi Handa
f4b670efaf (copy_category_entry): Fix for the case that RANGE is an integer. 2003-01-31 06:10:06 +00:00
Kenichi Handa
d8d032b87c (x_encode_char): Call ccl_driver with the last arg Qnil. 2003-01-31 06:09:27 +00:00
Kenichi Handa
b1a92b9199 (w32_encode_char): Call ccl_driver with the last arg Qnil. 2003-01-31 06:08:43 +00:00
Kenichi Handa
30959a4209 *** empty log message *** 2003-01-30 02:28:24 +00:00
Kenichi Handa
d5b3330910 (Fcharset_id_internal): New function.
(syms_of_charset): Defsubr it.
2003-01-30 02:25:12 +00:00
Kenichi Handa
8dcbea820b (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.
2003-01-30 02:23:40 +00:00
Kenichi Handa
35d47d18be (enum define_coding_ccl_arg_index): Set the first
member coding_arg_ccl_decoder to coding_arg_max.
2003-01-30 02:20:43 +00:00
Kenichi Handa
5cac9fd684 (ccl_driver): Prototype adjusted. 2003-01-30 02:19:36 +00:00
Kenichi Handa
bda731af93 (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.
2003-01-30 02:19:06 +00:00
Kenichi Handa
9a02732df6 (ENCODE_CHAR): If the method is SUBSET or SUPERSET, call encode_char. 2003-01-11 03:39:02 +00:00
Kenichi Handa
15c85a884f (encode_char): Fix handling of methods SUBSET and SUPERSET. 2003-01-11 03:38:05 +00:00
Kenichi Handa
1ab88162aa *** empty log message *** 2003-01-11 01:59:15 +00:00
Kenichi Handa
381cef56be (x_new_fontset): Fix previous change. 2003-01-11 01:50:19 +00:00
Dave Love
b418f8a60f (syms_of_composite): Make composition_hash_table
weak.
2003-01-10 12:45:24 +00:00
Kenichi Handa
23b513e6e2 *** empty log message *** 2003-01-10 07:42:18 +00:00
Kenichi Handa
b94d3b355f (x_new_fontset): Prototype adjusted. 2003-01-10 07:22:39 +00:00
Kenichi Handa
77dabd3b55 (x_new_fontset): Change the arg FONTSETNAME to Lisp
string.  Use new_fontset_from_font_name to create a fontset from a
font name.
2003-01-10 07:22:03 +00:00
Kenichi Handa
7fb92cb1cb (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.
2003-01-10 07:20:25 +00:00
Kenichi Handa
e7d9cb6ac3 (check_face_attributes, generate_ascii_font_name)
(font_name_registry): Don't extern them.
(split_font_name_into_vector, build_font_name_from_vector): Extern
them.
2003-01-10 07:16:14 +00:00
Kenichi Handa
d1970d058b (Qfontset): Don't extern it.
(new_fontset_from_font_name): Extern it.
2003-01-10 07:14:47 +00:00
Kenichi Handa
d6aaac9ead 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.
2003-01-10 07:13:43 +00:00
Kenichi Handa
154c2d3959 (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.
2003-01-10 06:55:55 +00:00
Dave Love
5c2a8d5d10 *** empty log message *** 2003-01-07 18:07:20 +00:00
Dave Love
92eaa22e5d (skip_chars, skip_syntaxes): Fix type errors. 2003-01-07 17:54:30 +00:00
Dave Love
a6dd56c511 (update_compositions): Fix type error. 2003-01-07 17:54:11 +00:00
Dave Love
6403daf1a3 (Fapropos_internal): Don't gcpro apropos_predicate but
set it to nil before returning.
2003-01-07 17:53:49 +00:00
Dave Love
a11e18e5af Fix some dependencies. 2003-01-07 17:52:51 +00:00
Kenichi Handa
3dcd48ddf4 (Fset_fontset_font): Fix indentation of docstring. 2003-01-07 01:28:01 +00:00
Kenichi Handa
2570e34465 (x_new_font): Optimize for the case that the font is
already set for the frame.
2003-01-07 01:26:33 +00:00