1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00
Commit graph

15437 commits

Author SHA1 Message Date
Kenichi Handa
8efbba212b *** empty log message *** 2002-05-08 04:19:21 +00:00
Kenichi Handa
b9e5a425cd (boyer_moore): Fix handling of mulitbyte character translation. 2002-05-07 12:46:21 +00:00
Kenichi Handa
e4ac82404f *** empty log message *** 2002-05-07 12:46:06 +00:00
Kenichi Handa
1a0c5ca966 *** empty log message *** 2002-05-07 04:55:49 +00:00
Kenichi Handa
f8e12783e2 (display_mode_element): When the variable `elt' is
changed, update `this' and `lisp_string'.
2002-05-07 04:55:32 +00:00
Kenichi Handa
3d79abfbd4 (try_font_list): Give higher priority to fontset's
family than face's family.
2002-05-07 04:51:47 +00:00
Kenichi Handa
82a2ce2c4d (Finsert_file_contents): Set coding_system instead of
val.  If the current buffer is multibyte, always call
decode_coding_gap.
2002-05-07 04:51:06 +00:00
Kenichi Handa
2c78b7e182 (coding_alloc_by_making_gap): Check the case that the
source and destination are the same correctly.
(decode_coding_raw_text): Set coding->consumed_char and
coding->consumed to 0.
(produce_chars): If coding->chars_at_source is nonzero, update
coding->consumed_char and coding->consumed before calling
alloc_destination.
(Fdefine_coding_system_alias): Register ALIAS in
Vcoding_system_alist.
(syms_of_coding): Define `no-convesion' coding system at the tail.
2002-05-07 04:50:48 +00:00
Kenichi Handa
e9ce014c7b (struct charset_map_entries): New struct.
(load_charset_map): Renamed from parse_charset_map.  New args
entries and n_entries.  Caller changed.
(load_charset_map_from_file): Renamed from load_charset_map.
Caller changed.  New arg control_flag.  Call load_charset_map at
the tail.
(load_charset_map_from_vector): New function.
(Fdefine_charset_internal): Setup charset.compact_codes_p.
(encode_char): If the charset is compact, change a character index
to a code point.
2002-05-07 04:50:29 +00:00
Kenichi Handa
ea99bcc1c7 (Fcall_process): Be sure to give the current buffer
to decode_coding_c_string.  Update PT and PT_BYTE after the
insertion.
2002-05-07 04:50:09 +00:00
Kenichi Handa
31285a8f59 (Fset_buffer_multibyte): Fix 8-bit char handling. 2002-05-07 04:49:50 +00:00
Kenichi Handa
f56ed24b07 (display_mode_element): Fix calculation of `bytepos'. 2002-04-09 07:42:27 +00:00
Kenichi Handa
50342b3520 (Finsert_file_contents): Fix calculation of `inserted'.
Fix arguments to insert_from_buffer.
2002-04-09 07:42:06 +00:00
Kenichi Handa
6a709baf2a *** empty log message *** 2002-04-09 07:39:44 +00:00
Kenichi Handa
71c8142642 (produce_chars): Set the variable `multibytep' correctly.
(decode_coding_gap): Set coding->dst_multibyte correctly.
2002-03-11 11:28:41 +00:00
Kenichi Handa
85779cf5b7 *** empty log message *** 2002-03-11 11:28:06 +00:00
Kenichi Handa
dd6d5c0113 *** empty log message *** 2002-03-08 00:22:54 +00:00
Kenichi Handa
d67f020c62 (insert_from_gap): Call record_insert. 2002-03-08 00:19:56 +00:00
Kenichi Handa
e19c3639af (encode_coding_utf_8): Initialize produced_chars to 0.
(decode_coding_utf_16): Fix converting high and low bytes to
code-point.
(encode_coding_utf_16): Substitute coding->default_char for
non-Unicode characters.
(decode_coding): Don't call record_insert here.
(setup_coding_system): Initialize `surrogate' of
coding->spec.utf_16 to 0.
(EMIT_ONE_BYTE): Fix for multibyte case.
2002-03-08 00:19:39 +00:00
Kenichi Handa
ed9d8bdadc *** empty log message *** 2002-03-08 00:18:28 +00:00
Kenichi Handa
3e4abc9e90 *** empty log message *** 2002-03-05 01:07:22 +00:00
Kenichi Handa
c449997d16 (parse_charset_map): Remove an unused variable. 2002-03-05 01:03:08 +00:00
Kenichi Handa
dcb82a5edf (SET_RAW_SYNTAX_ENTRY): Don't call make_number. 2002-03-05 00:09:36 +00:00
Kenichi Handa
1c157f8ddc (Finsert_file_contents): Set coding_system to Qnil
earlier.  If inserted is zero and the coding system doesn't
require flushing, don't call decode_coding_gap.
2002-03-05 00:09:15 +00:00
Kenichi Handa
0be8721c15 * coding.c: Delete unused variables. 2002-03-05 00:08:50 +00:00
Kenichi Handa
22d49f94bd (sub_char_table_set_range): Optimized for the case
DEPTH == 3.  Add workaround code for a GCC optimization bug.
2002-03-05 00:08:31 +00:00
Kenichi Handa
885317d817 (CHAR_VALID_P): Don't call CHARACTERP.
(CHAR_STRING): Adjusted for the change of
char_string_with_unification.
(CHAR_STRING_ADVANCE): Make it do-while statement.
2002-03-05 00:08:10 +00:00
Kenichi Handa
1889b23802 (c_string_width): Add return type `int'.
(char_string_with_unification): Arg ADVANCED deleted.
2002-03-05 00:07:51 +00:00
Kenichi Handa
ed5d25fe5e (casify_region): Fix multibyte case. 2002-03-05 00:07:19 +00:00
Kenichi Handa
c432b7991e Don't include "charset.h".
(selection_data_to_lisp_data): Adjusted for the new code
covnersion API.
2002-03-01 04:28:00 +00:00
Kenichi Handa
6f33797458 *** empty log message *** 2002-03-01 04:27:37 +00:00
Kenichi Handa
8a78c965db Include "character.h".
(x_encode_char): New argument CHARSET.  Caller changed.
(x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
SPLIT_CHAR.
(x_get_glyph_face_and_encoding): Likewise.
(x_produce_glyphs): Don't check Vnonascii_translation_table Call
CHAR_WIDTH instead of CHARSET_WIDTH.
(XTread_socket): Adjusted for the new code-conversion API.
(x_new_font): Adjusted for the change of FS_LOAD_FONT.
(x_load_font): Adjusted for the change of struct font.
2002-03-01 04:15:33 +00:00
Kenichi Handa
06f76f0d47 Mostly re-written. 2002-03-01 02:07:40 +00:00
Kenichi Handa
0f8c4c4fed Include "character.h".
(x_encode_text): Adjusted for the new code-conversion API.
2002-03-01 01:50:19 +00:00
Kenichi Handa
81b39386f6 Include "character.h" instead of "charset.h".
(load_face_font): Adjusted for the change of choose_face_font and
FS_LOAD_FONT.
(generate_ascii_font): New function.
(set_lface_from_font_name): Adjusted for the change of
FS_LOAD_FONT.
(set_font_frame_param): Adjusted for the change of
choose_face_font.
(free_realized_face): Make it public.
(free_realized_faces_for_fontset): Renamed from
free_realized_multibyte_face.  Free also faces realized for ASCII.
(choose_face_font): Argments changed.  Adjusted for the change of
fontset_font_pattern and FS_LOAD_FONT.
2002-03-01 01:49:55 +00:00
Kenichi Handa
ea0ffe2111 Include "character.h".
(get_next_display_element): Adjusted for the new multibyte form.
(disp_char_vector): Adjusted for the new char table structure.
(decode_mode_spec_coding): Adjusted for the new structure of
coding system.
(decode_mode_spec): Adjusted for the new code-conversion API.
2002-03-01 01:49:30 +00:00
Kenichi Handa
43d69cebd5 (x_new_font): Adjusted for the change of FS_LOAD_FONT. 2002-03-01 01:49:08 +00:00
Kenichi Handa
9332ea0315 Include "buffer.h" and "character.h".
(encode_terminal_code): Adjusted for the new code-conversion API.
(write_glyphs): Likewise.
(produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
2002-03-01 01:48:37 +00:00
Kenichi Handa
f4926ee835 (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
(SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
(SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
(SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
2002-03-01 01:48:16 +00:00
Kenichi Handa
5c7b02aba7 Include "character.h" instead of "charset.h".
(syntax_parent_lookup): Deleted.
(Fmodify_syntax_entry): Accept a cons as CHAR.
(skip_chars): Adjusted for the new multibyte form.
(init_syntax_once): Call char_table_set_range instead of directly
accessing the structure of a char table.
2002-03-01 01:47:11 +00:00
Kenichi Handa
76eb088136 Include "character.h" instead of "charset.h".
(search_buffer, boyer_moore): Adjusted for the new multibyte form.
(Freplace_match): Adjusted for the change of
multibyte_char_to_unibyte.
2002-03-01 01:46:49 +00:00
Kenichi Handa
9117d724bb * regex.c: Include "character.h" instead of "charset.h".
(BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
(regex_compile): Accept a range whose starting and ending
character have different leading bytes.
(analyse_first): Adjusted for the above change.
2002-03-01 01:46:12 +00:00
Kenichi Handa
404061ebe6 (BASE_PURESIZE): Increased. 2002-03-01 01:45:51 +00:00
Kenichi Handa
5bbf78c1f9 Include "character.h" instead of "charset.h".
(read_process_output): Adjusted for the new code-conversion API.
(send_process): Likewise.
2002-03-01 01:45:23 +00:00
Kenichi Handa
8b4b4467b5 * print.c: Include "character.h" instead of "charset.h".
(print_string): Convert 8-bit raw bytes to octal form by
string_escape_byte8.
(print_object): Adjusted for the new multibyte form.  Print 8-bit
raw bytes always in octal form.  Handle sub char table correctly.
2002-03-01 01:45:03 +00:00
Kenichi Handa
1571601b93 Include "character.h".
(read_multibyte): New arg NBYTES.
(read_escape): The meaning of returned *BYTEREP changed.
(to_multibyte): Deleted.
(read1): Adjuted the handling of char table and string.
2002-03-01 01:44:45 +00:00
Kenichi Handa
1842abb2bf (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
(XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
(CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
Deleted.
(CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
structure.
(CHAR_TABLE_TRANSLATE): Just call char_table_translate.
(CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
CHARTAB_SIZE_BITS_3): New macros.
(chartab_size): Extern it.
(struct Lisp_Char_Table): Re-designed.
(struct Lisp_Sub_Char_Table): New structure.
(HASH_KEY, HASH_VALUE): Moved from fns.c.
(CHARACTERBITS): Defined as 22.
(GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
(SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
(GC_SUB_CHAR_TABLE_P): New macro.
(Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
(code_convert_string_norecord): Extern deleted.
(init_character_once, syms_of_character, init_charset,
syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
2002-03-01 01:44:13 +00:00
Kenichi Handa
dd4acaa57f (describe_char_table): Extern it. 2002-03-01 01:43:45 +00:00
Kenichi Handa
e1e36e6e40 Include "character.h".
(store_in_keymap): Handle the case that IDX is a cons.
(Fdefine_key): Handle the case that KEY is a cons and the car part
is also a cons (range).
(push_key_description): Adjusted for the new character code.
(describe_vector): Call describe_char_table for a char table.
(describe_char_table): New function.
2002-03-01 01:43:26 +00:00
Kenichi Handa
8b46191092 Include "character.h" instead of "charset.h".
(command_loop_1): Never call direct_output_forward_char before
a non-ASCII character.
(read_char): If Vkeyboard_translate_table is a char table, always
translated a character.
2002-03-01 01:43:03 +00:00