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.
Kenichi Handa [Mon, 6 Jan 2003 11:37:17 +0000 (11:37 +0000)]
(CATEGORY_MASK_RAW_TEXT): New macro.
(detect_coding_utf_8, detect_coding_utf_16)
(detect_coding_emacs_mule, detect_coding_iso_2022)
(detect_coding_sjis, detect_coding_big5)
(detect_coding_ccl, detect_coding_charset): Change argument MASK
to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
sequence is valid in this coding system. Callers changed.
(MAX_ANNOTATION_LENGTH): New macro.
(ADD_ANNOTATION_DATA): New macro.
(ADD_COMPOSITION_DATA): Argument changed. Callers changed. Call
ADD_ANNOTATION_DATA. The format of annotation data changed.
(ADD_CHARSET_DATA): New macro.
(emacs_mule_char): New argument ID. Callers changed.
(decode_coding_emacs_mule, decode_coding_iso_2022)
(decode_coding_sjis, decode_coding_big5, decode_coding_charset):
Produce charset annotation data in coding->charbuf.
(encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
to charset annotation data in coding->charbuf.
(setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
coding->common_flags if the coding system is iso-2022 based and
uses designation.
(produce_composition): Adjusted for the new annotation data
format.
(produce_charset): New function.
(produce_annotation): Handle charset annotation.
(handle_composition_annotation, handle_charset_annotation): New
functions.
(consume_chars): Handle charset annotation. Utilize the above two
functions.
(encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
buffer, get the deleted text as a string and set
coding->src_object to that string.
(detect_coding, detect_coding_system): Use the new struct
coding_detection_info.
Kenichi Handa [Mon, 6 Jan 2003 11:36:42 +0000 (11:36 +0000)]
(struct coding_detection_info): New structure.
(struct coding_system): Prototype of the member `detector'
adjusted.
(CODING_ANNOTATE_CHARSET_MASK): New macro.
Dave Love [Fri, 3 Jan 2003 20:25:06 +0000 (20:25 +0000)]
(apropos_predicate, apropos_accumulate): Declare
static.
(Fapropos_internal): Don't gcpro apropos_accumulate. Set result
to new local and nullify apropos_accumulate before returning.
(syms_of_keymap): Staticpro and initialize apropos_accumulate.
Kenichi Handa [Thu, 7 Nov 2002 06:29:59 +0000 (06:29 +0000)]
Register combining characters in
composition-function-table.
(diacritic-composition-function): Change arguments to conform to
composition-function-table.
Kenichi Handa [Thu, 7 Nov 2002 06:29:31 +0000 (06:29 +0000)]
Register devanagari-composable-pattern
in indian-composable-pattern.
(devanagari-composition-function): Add autoload cookie. Change
arguments to conform to composition-function-table.
Kenichi Handa [Thu, 7 Nov 2002 06:27:27 +0000 (06:27 +0000)]
Remove all autoload cookies.
(composition-function-table): Variable declaration moved from
composite.c. Format changed.
(save-buffer-state): Copied from font-lock.el.
(auto-composition-chunk-size): New variable.
(auto-compose-chars): New function. Set
auto-composition-function to it.
(toggle-auto-composition): New function.
Kenichi Handa [Thu, 7 Nov 2002 06:25:49 +0000 (06:25 +0000)]
Don't require thai-util.
(quail-thai-update-translation): Function deleted.
(thai-generate-quail-map): Changed to a macro that directly calls
quail-define-rules.
("thai-kesmanee", "thai-pattachote"): Don't use
UPDATE-TRANSLATION-FUNCTION.
Kenichi Handa [Wed, 6 Nov 2002 00:10:42 +0000 (00:10 +0000)]
(decode_coding_utf_8): When eol_type is Qdos, handle
the case that the last byte is '\r' correctly.
(decode_coding_emacs_mule): Likewise.
(decode_coding_iso_2022): Likewise.
(decode_coding_sjis): Likewise.
(decode_coding_big5): Likewise.
(decode_coding_charset): Likewise.
(produce_chars): Likewise.
(decode_coding): Flushing out the unprocessed data correctly.
(decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of
coding->mode.
Kenichi Handa [Tue, 29 Oct 2002 12:02:20 +0000 (12:02 +0000)]
(Vface_resizing_fonts): New variable.
(struct font_name): New member `resizing_ratio'.
(font_resizing_ratio): New function.
(split_font_name): Set font->resizing_ratio.
(better_font_p): Pay attention to font->resizing_ratio.
(build_scalable_font_name): Likewise. Don't change POINT_SIZE,
RESX, and RESY fields.
(try_alternative_families): Try scalable fonts if
Vscalable_fonts_allowed is not Qt.
(syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.