Commit graph

324 commits

Author SHA1 Message Date
Kenichi Handa
24a948a781 (code_convert_region): Fix last change. 2003-04-08 10:46:31 +00:00
Kenichi Handa
1c7457e294 (code_convert_region_unwind): Set
Vlast_coding_system_used to the argument.
(code_convert_region): If post-read-conversion function changed
the value of last-coding-sytem, keep the new value in
coding->symbol so that it won't be overridden.
(run_pre_post_conversion_on_str): Likewise.
2003-04-08 07:26:05 +00:00
Kenichi Handa
067a6a66a6 (Vchar_coding_system_table): Remove this variable.
(Vcoding_system_safe_chars): New variable.
(intersection): Remove this function.
(find_safe_codings): Don't use Vchar_coding_system_table, but try
all codings in SAFE_CODINGS.
(Ffind_coding_systems_region_internal): Adjusted for the change of
find_safe_codings.  Get generic coding systems from
Vcoding_system_safe_chars.
(Fdefine_coding_system_internal): New function.
(syms_of_coding): Defsubr Sdefine_coding_system_internal.
Initialize and staticpro Vcoding_system_safe_chars.
2003-03-18 04:26:15 +00:00
Kenichi Handa
40fd536ccc (Fdetect_coding_region): Fix docstring. 2003-03-13 11:32:18 +00:00
Kenichi Handa
eec1f3c794 (Fdetect_coding_string): Fix docstring. 2003-03-13 11:16:16 +00:00
Kenichi Handa
b6871cc7dd (CODING_ADD_COMPOSITION_COMPONENT): If the number of
composition components reaches the limit, terminate composing.
(COMPOSITION_OK): New macro.
(detect_coding_iso2022): Use it if an escapse sequence for
composition is found.
(coding_restore_composition): Adjust the number of composition
components if it is not sane.
2003-03-07 02:18:35 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Kenichi Handa
6b89e3aa28 (syms_of_coding): Add `...' for symbols in the docstring of
`coding-system-require-warning'.
2003-01-31 04:03:07 +00:00
Kenichi Handa
5d5bf4d8e1 (coding_system_require_warning): New variable.
(syms_of_coding): DEFVAR it.
2002-12-17 11:39:13 +00:00
Kenichi Handa
200c93e2af (Funencodable_char_position): Set pend correctly. 2002-12-13 02:35:51 +00:00
Dave Love
15c8f9d1ad (Vtranslation_table_for_input): New.
(syms_of_coding): DEFVAR it.
2002-11-09 12:49:31 +00:00
Dave Love
002fdb4486 Reformat some DEFUNs so that etags works. 2002-11-06 23:31:21 +00:00
Stefan Monnier
ea9d458bec (decode_coding_emacs_mule, decode_coding_iso2022)
(decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2002-11-02 08:16:57 +00:00
Juanma Barranquero
7d0393cf12 Fix typo in comment. 2002-10-18 10:09:43 +00:00
Kenichi Handa
b3385c2865 (code_convert_region): When we need more GAP for
conversion, pay attention to the case that coding->produced is not
greater than coding->consumed.
2002-10-08 00:57:59 +00:00
Kenichi Handa
3089d25c87 (decode_coding_emacs_mule): Check coding->cmp_data.
Only when it is non-nil, handle composition sequence.
(setup_coding_system) <0>: Don't force composition handling.
2002-09-30 06:28:31 +00:00
Richard M. Stallman
cf3b32fcfb (run_pre_post_conversion_on_str): Save and restore Vdeactivate_mark. 2002-09-26 22:03:41 +00:00
Juanma Barranquero
5f90b4fbb2 (syms_of_coding): Fix spacing. 2002-09-06 09:02:11 +00:00
Gerd Moellmann
96d2e64dce (Funencodable_char_position): Lisp_Object/int mixup. 2002-08-13 19:12:46 +00:00
Kenichi Handa
068a9dbdf6 (unencodable_char_position): New function.
(Funencodable_char_position): New function.
(syms_of_coding): Defsubr Funencodable_char_position.
2002-08-11 01:06:42 +00:00
Ken Raeburn
d90ed3b46f (Ffind_operation_coding_system): Fix Lisp_Object/int mixup. 2002-08-08 16:59:23 +00:00
Kenichi Handa
7f787cfd76 (Ffind_operation_coding_system): For write-region, if
VISIT is a filename, make it the target.
2002-08-08 12:34:27 +00:00
Kenichi Handa
8d239c89c6 (detect_coding_iso2022): While checking a byte sequence
for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
it in the normal loop.
2002-07-26 11:53:25 +00:00
Ken Raeburn
a424431367 (encode_eol, detect_coding, detect_eol):
(decode_coding, encode_coding, detect_coding_system): Source
strings now treated as const.
(decode_coding_string, encode_coding_string): Use STRING_COPYIN to
modify Lisp string contents.
2002-07-19 14:26:57 +00:00
Ken Raeburn
a90f2c3549 (Ffind_coding_systems_region_interval): Use const for
pointer to lisp string data.
2002-07-16 19:48:04 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Juanma Barranquero
f458a8e091 Fix typo. 2002-07-03 09:49:28 +00:00
Kenichi Handa
1cd6b64ce8 (detect_eol): Preserve coding->cmp_data. 2002-06-24 00:35:59 +00:00
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
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
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
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