1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 05:00:47 -08:00
Commit graph

358 commits

Author SHA1 Message Date
Ken Raeburn
57d25e6f09 * coding.c (Fread_coding_system, code_convert_region1)
(code_convert_string1, code_convert_string_norecord)
(Ffind_operation_coding_system): Use SYMBOL_NAME instead of
XSYMBOL and name field.
2002-05-20 08:05:15 +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
Eli Zaretskii
9861e77766 (decode_coding) <coding_type_ccl>: If a lone CR
characters is carried over from the previous block of text, adjust
coding->produced to account for the extra character.
2002-05-11 21:33:13 +00:00
Andreas Schwab
eef762fc0f (intersection): Keep the elements of the returned list
in the same order as in the first list.
2002-05-11 16:00:10 +00:00
Eli Zaretskii
7371fe0a09 (encode_coding_sjis_big5): Enclose bitwise AND in
parens, to ensure correct evaluation order.
2002-05-10 08:51:44 +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
Richard M. Stallman
3fd9494be4 (run_pre_post_conversion_on_str):
Don't call temp_output_buffer_setup--do just part, by hand.
2002-04-13 17:49:00 +00:00
Andreas Schwab
ff955d9000 (syms_of_coding) <file-coding-system-alist>: Doc fix 2002-03-11 19:22:07 +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
Gerd Moellmann
f5c1dd0dc5 Use SYMBOL_VALUE/SET_SYMBOL_VALUE macros instead of accessing
symbols' value directly.
2001-10-05 09:49:39 +00:00
Gerd Moellmann
70ad9fc448 (code_convert_region): Handle the multibyte case if
decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2001-07-23 09:26:46 +00:00
Ken Raeburn
928a85c1ba * coding.c (setup_coding_system): Don't do any designation based on reg_bits if
charset is not yet defined.
2001-07-17 16:29:39 +00:00
Stefan Monnier
176c92e68f (Ffind_coding_systems_region_internal): If safe_codings
is t, don't try to append anything to it.
2001-07-12 20:28:45 +00:00
Dave Love
ae5145c238 comment 2001-04-05 21:15:02 +00:00
Kenichi Handa
c210f766a0 (Fdetect_coding_region): Fix comments added by the previous change. 2001-03-08 04:42:43 +00:00
Kenichi Handa
67091e5974 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP. 2001-03-08 02:19:18 +00:00
Kenichi Handa
682169fe7f (detect_coding_sjis): Do more rigid check.
(detect_coding_big5): Likewise.
(decode_coding_sjis_big5): Likewise.
(Fdetect_coding_region): Call detect_coding_system with tailing
anchor byte `\0' for more rigid detection.
(Fdetect_coding_string): Likewise.
2001-03-08 02:01:00 +00:00
Kenichi Handa
2f4b4b44cf (syms_of_coding): Docstring modified. 2001-03-05 06:40:18 +00:00
Kenichi Handa
ade8d05eff (ccl_coding_driver): If ccl->eight_bit_control is zero,
treat the produced bytes as a valid multibyte sequence.
2001-02-27 03:27:20 +00:00
Dave Love
8ca3766acc Doc and message fixes. 2001-02-14 23:50:05 +00:00
Kenichi Handa
d280ccb69e (code_convert_region): After detecting a coding, if
nothing found, set coding->composing to COMPOSITION_NO.
(decode_coding_string): Likewise.
2001-02-08 23:29:44 +00:00
Kenichi Handa
8844fa83d3 (decode_coding): Set a flag for inhibiting
inconsistent eol.
(code_convert_region): Always set saved_coding_symbol.
(decode_coding_string): Likewise.  Update coding->symbol when we
encounter a inconsistent eol by the same way as
code_convert_region.
2001-01-26 06:10:21 +00:00
Kenichi Handa
bd64290dac (ccl_coding_driver): Setup ccl->suppress_error.
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
2001-01-24 23:30:34 +00:00
Dave Love
cfb43547a4 Commentary changes.
(detect_eol_type_in_2_octet_form): Declare arg big_endian_p.
2001-01-04 17:35:26 +00:00