Commit graph

273 commits

Author SHA1 Message Date
Kenichi Handa
c6fb6e9828 (Fdefine_coding_system_internal): Fix category setting
for a coding system of type iso-2022.
2002-08-08 13:01:56 +00:00
Kenichi Handa
9d123124fb * coding.c (make_conversion_work_buffer): Adjusted for the change
of Fset_buffer_multibyte.
(encode_coding_raw_text): Increment p0 in the loop.
2002-07-31 07:09:00 +00:00
Dave Love
9542cb1fc7 Comment fix 2002-07-30 11:36:59 +00:00
Kenichi Handa
48468dac87 (Ffind_coding_systems_region_internal): Detect an
ASCII only string correctly.
2002-07-25 02:01:39 +00:00
Kenichi Handa
7c78e5423a (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12,
LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Macros
deleted.  Callers changes to use
EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
(decode_coding_ccl): Add `const' to local variables.
(consume_chars): Likewise.
(Ffind_coding_systems_region_internal): Likewise.
(Fcheck_coding_systems_region): Likewise.
2002-07-22 06:40:36 +00:00
Dave Love
6f197c07d0 (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. 2002-07-17 10:21:01 +00:00
Dave Love
c197f19176 (ENCODE_DESIGNATION, decode_eol)
(make_conversion_work_buffer, code_conversion_restore)
(Fdefine_coding_system_internal): Convert Lisp types.
(code_conversion_restore): Use EQ, not ==.
(Fencode_coding_string): Fix code_convert_string call.
2002-07-16 15:10:13 +00:00
Dave Love
a3f6ee6d06 (Fset_coding_system_priority): Allow null arg list. 2002-07-11 23:15:52 +00:00
Dave Love
5a936b4698 comments 2002-06-16 19:57:54 +00:00
Kenichi Handa
16eafb5da6 (encode_coding_emacs_mule): Pay attention to raw-8-bit chars.
(encode_coding_iso_2022): Likewise.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
2002-05-31 01:03:50 +00:00
Kenichi Handa
bf16eb23a0 (CODING_ISO_FLAG_USE_ROMAN): New macro
(CODING_ISO_FLAG_USE_OLDJIS): New macro.
(CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed.
(setup_iso_safe_charsets): Fix arguemtns to Fassq.
(DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN
and CODING_ISO_FLAG_USE_OLDJIS.
(ENCODE_ISO_CHARACTER_DIMENSION1): Likewise.
(ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
(encode_coding_iso_2022): Change the 1st arg to
ENCODE_ISO_CHARACTER to a variable.
2002-05-30 11:02:01 +00:00
Dave Love
b0edb2c59c (decode_coding_utf_8): Reject overlong sequences. 2002-05-27 22:19:17 +00:00
Dave Love
1965cb73a0 (Qmac): Remove (duplicated) definition. 2002-05-26 17:11:04 +00:00
Dave Love
da7db22498 Doc fixes.
(Fcoding_system_aliases): Fix return value.
2002-05-26 17:07:35 +00:00
Dave Love
f0064e1f74 (setup_iso_safe_charsets): Fix arg decl for K&R.
(suffixes): Moved out of make_subsidiaries for K&R.
2002-05-24 15:33:29 +00:00
Kenichi Handa
f9d71dcd06 (Fdefine_coding_system_internal): Fix previous change.
(decode_coding_charset): Workaround for the bug of GCC 2.96.
2002-05-23 10:56:58 +00:00
Kenichi Handa
acb2a96517 (decode_coding_charset): Fix previous change. 2002-05-22 11:30:00 +00:00
Kenichi Handa
c7c66a958b (decode_coding_charset): Adjusted for the change of
Fdefine_coding_system_internal.
(Fdefine_coding_system_internal): For a coding system of
`charset' type, store a list of charset IDs in
`charset_attr_charset_valids' element of coding attributes.
2002-05-22 11:14:45 +00:00
Kenichi Handa
0cbbb5690d (emacs_mule_char): Fix previous change. 2002-05-21 05:09:20 +00:00
Kenichi Handa
781d7a48c4 (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
(emacs_mule_char): New arg src.  Delete arg `composition'.  Caller
changed.  Handle 2-byte and 3-byte charsets correctly.
(DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
DECODE_EMACS_MULE_COMPOSITION_RULE.  Caller changed.
(DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
(DECODE_EMACS_MULE_21_COMPOSITION): Call
DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
sequence.
(decode_coding_emacs_mule): Handle composition correctly.  Rewind
`src' and `consumed_chars' correctly before calling
emacs_mule_char.
(DECODE_COMPOSITION_START): Correctly handle the case of altchar
and alt&rule composition.
(decode_coding_iso_2022): Handle composition correctly.
(init_coding_once): Setup emacs_mule_bytes for private charsets.
2002-05-21 04:23:15 +00:00
Kenichi Handa
41cbe562e6 (encode_coding_iso_2022): If coding requires safe
encoding, produce a character specified by
CODING_INHIBIT_CHARACTER_SUBSTITUTION.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
2002-05-20 12:10:04 +00:00
Dave Love
1fcd6c8b99 (Vchar_coding_system_table, Qchar_coding_system):
Removed.
(Fset_coding_system_priority, Fset_coding_system_priority)
(Fdefine_coding_system_internal): Doc fix.
2002-05-17 16:25:23 +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
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
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
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
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
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
Kenichi Handa
4eb6d3f120 (decode_coding_charset, encode_coding_charset): Handle
multiple charsets correctly.
2002-05-08 04:19:41 +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
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
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
0be8721c15 * coding.c: Delete unused variables. 2002-03-05 00:08:50 +00:00
Kenichi Handa
df7492f970 Completely re-written. 2002-03-01 01:17:24 +00:00
Richard M. Stallman
b1887814c3 (decode_composition_emacs_mule):
Give up if NCOMPONENT gets too large to index `component'.
2002-02-01 04:34:21 +00:00
Richard M. Stallman
72d1a715ee (code_convert_region): Don't copy old text if undo disabled. 2002-01-11 21:27:54 +00:00
Richard M. Stallman
0e79d66738 (code_convert_region): Update coding->cmp_data->char_offset
before calling decode_coding.
2001-12-17 15:33:32 +00:00
Sam Steingold
93dec0196b (DECODE_COMPOSITION_END): Fixed a typo in the last
patch (COMPOSING_P, not COMPOSING).
2001-12-17 15:21:06 +00:00
Richard M. Stallman
c8446041d5 (DECODE_COMPOSITION_END): Check for ! COMPOSING (coding)
instead of only for COMPOSITION_DISABLED.
2001-12-17 14:05:07 +00:00
Pavel Janík
8732329486 (setup_coding_system, shrink_encoding_region)
(Fdecode_sjis_char): Likewise.
2001-12-09 00:56:24 +00:00
Dave Love
0192762cef (syms_of_coding) <Qchar_coding_system>: Give it an
extra extra slot.
(detect_coding_mask): Fix call of detect_coding_iso2022.
2001-11-29 12:54:12 +00:00
Pavel Janík
55b43a6305 (decode_coding_string): Remove unused variable `gcpro1'. 2001-11-28 07:36:46 +00:00
Richard M. Stallman
7520597013 (syms_of_coding): Doc fix. 2001-11-14 00:04:57 +00:00
Pavel Janík
ddb67bdc78 Doc fix. 2001-11-13 11:56:24 +00:00
Pavel Janík
fabf4a91cf (encode_coding): Use precomputed value of `src'.
(encode_coding): Remove unused variable `src_end'.
(code_convert_region): Remove unused variables `count'.
2001-11-09 08:02:08 +00:00
Pavel Janík
48b0f3aed7 Change doc-string comments to new style' [w/doc:' keyword]. 2001-11-04 17:43:52 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Eli Zaretskii
9048000044 (syms_of_coding): Document that locale-coding-system is
used for decoding input on X.
2001-10-29 19:37:06 +00:00
Miles Bader
a58d71cbdd (Ffind_operation_coding_system): Add usage: string to doc string. 2001-10-21 15:20:20 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00