1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
Commit graph

15461 commits

Author SHA1 Message Date
Kenichi Handa
7b40ebaf2a (string_escape_byte8): Make multibyte string with correct size. 2002-05-16 11:25:20 +00:00
Kenichi Handa
ae0b443e48 (Fmake_char): Delete unnecessary code. 2002-05-15 23:34:17 +00:00
Kenichi Handa
cc5ac4b17c *** empty log message *** 2002-05-15 23:33:49 +00:00
Kenichi Handa
ac87bbef3e (encode_coding_object): Give correct arguments ot
pre-write-conversion.  Ignore the return value of
pre-write-conversion function.  Pay attention for the case that
pre-write-conversion change the current buffer.  If dst_object is
Qt, even if coding->src_bytes is zero, allocate at least one byte
to coding->destination.
2002-05-14 13:03:45 +00:00
Kenichi Handa
b954d58692 (x_encode_text): Allocate coding.destination here, and
call encode_coding_object with dst_object Qnil.
2002-05-14 13:02:54 +00:00
Kenichi Handa
8c2fc31134 (Fset_buffer_multibyte): Convert 8-bit bytes to
multibyte form correctly.
2002-05-14 11:51:08 +00:00
Kenichi Handa
c0cc7f7f49 (decode_coding_object): Move point to coding->dst_pos before
calling post-read-conversion function.
2002-05-14 11:47:35 +00:00
Kenichi Handa
48728c92ad (fs_load_font): Check fontp->full_name (not fontname)
against Vfont_encoding_alist.
2002-05-14 08:52:40 +00:00
Kenichi Handa
5afaefc118 (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). 2002-05-14 08:01:50 +00:00
Kenichi Handa
004068e4fc (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
handling of charset list.
(encode_coding_iso_2022): Setup coding->safe_charsets in advance.
2002-05-14 08:00:53 +00:00
Kenichi Handa
6abd9323c6 (Fmap_charset_chars): Fix docstring. 2002-05-14 07:59:29 +00:00
Kenichi Handa
b121a744db (Fmake_char): Make it more backward compatible. 2002-05-14 00:40:45 +00:00
Dave Love
356212fe86 *** empty log message *** 2002-05-13 18:28:25 +00:00
Dave Love
5bad079652 Doc fixes.
(Fdefine_coding_system_alias): Use names, not symbols, in
coding-system-alist.
2002-05-13 17:50:19 +00:00
Kenichi Handa
b2b3bb62ea *** empty log message *** 2002-05-13 13:06:25 +00:00
Kenichi Handa
27e20b2f05 (free_realized_fontsets): Call Fclear_face_cache instead
of calling free_reazlied_face.
2002-05-13 12:09:57 +00:00
Kenichi Handa
15d143f758 (coding_set_source): Delete the local variable beg_byte.
(encode_coding_charset): Delete the local variable charset.
(Fdefine_coding_system_internal): Likewise.
(Fdefine_coding_system_internal): Setup
attrs[coding_attr_charset_valids] correctly.
2002-05-10 03:56:05 +00:00
Kenichi Handa
ac6a802866 (struct charset): New member `code_space_mask'. 2002-05-10 03:55:12 +00:00
Kenichi Handa
69f8de5b05 (load_charset_map): Fix previous change.
(read_hex): Don't treat SPC as a comment starter.
(decode_char): If CODE_POINT_TO_INDEX retruns -1, always return
-1.
(Fdecode_char): Fix typo.
(CODE_POINT_TO_INDEX): Utilize `code_space_mask'
member to check if CODE is valid or not.
(Fdefine_charset_internal): Initialize `code_space_mask' member.
(encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
is within the range of charset->min_code and carset->max_code.
2002-05-10 03:54:48 +00:00
Dave Love
b74e4686d5 (coding_inherit_eol_type)
(Fset_terminal_coding_system_internal)
(Fset_safe_terminal_coding_system_internal): Fix arg declarations.
2002-05-09 18:00:40 +00:00
Dave Love
adab24c879 (generate_ascii_font): Fix return type. 2002-05-09 17:59:15 +00:00
Dave Love
3d7db6f139 (syntax_temp) [!__GNUC__]: Declare. 2002-05-09 17:59:01 +00:00
Dave Love
ccd04f96be (generate_ascii_font): Fix arg declaration. 2002-05-09 17:57:26 +00:00
Kenichi Handa
4eb6d3f120 (decode_coding_charset, encode_coding_charset): Handle
multiple charsets correctly.
2002-05-08 04:19:41 +00:00
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