Kenichi Handa
5a7a1dde2c
(detect_coding_iso2022): New arg
...
latin_extra_code_state. Allow Latin extra codes only
when *latin_extra_code_state is nonzero.
(detect_coding_mask): If there is a NULL byte, detect the encoding
as UTF-16 or binary. If Latin extra codes exist, detect the
encoding as ISO-2022 only when there's no other proper encoding is
found.
2008-01-19 05:55:50 +00:00
Glenn Morris
8cabe764e9
Add 2008 to copyright years.
2008-01-08 04:37:27 +00:00
Glenn Morris
930f57b46e
(Qcompletion_ignore_case): New external Lisp_Object.
...
(Fread_coding_system): Ignore case of user input.
2007-10-17 01:29:32 +00:00
Glenn Morris
1427aa658e
Remove license from trivial file.
2007-07-25 07:49:39 +00:00
Juanma Barranquero
fc9c3ac9d6
(Ffind_operation_coding_system): Doc fix.
2007-07-16 10:31:56 +00:00
Glenn Morris
4e6835dbc4
Add 2007 to copyright years.
2007-01-21 04:57:37 +00:00
Kenichi Handa
7976eda061
Update AIST copyright years.
2006-12-13 01:13:58 +00:00
Kenichi Handa
1364f42033
(code_convert_region): Initialize
...
coding->heading_ascii.
(decode_coding_string, code_convert_region): Likewise.
2006-11-14 10:41:04 +00:00
Juanma Barranquero
8acf0c0e20
(Fencode_sjis_char, Fencode_big5_char): Improve argument/docstring consistency.
2006-11-12 22:18:51 +00:00
Kenichi Handa
12e0131afb
(Fdetect_coding_region, Fdetect_coding_string): Fix
...
docstring about ISO-2022 control characters.
2006-08-28 04:18:47 +00:00
Kenichi Handa
8db1f9fa0c
(ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
...
is exhausted, return with RET.
(detect_coding_emacs_mule, detect_coding_iso2022)
(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
(detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
change.
2006-08-15 02:42:21 +00:00
Kenichi Handa
2c53e699a1
(syms_of_coding): Improve the docstring
...
file-coding-system-alist.
2006-08-09 01:25:03 +00:00
Richard M. Stallman
4f213bd48d
Comment change.
2006-07-29 22:03:14 +00:00
Eli Zaretskii
0ef973bb13
(Ffind_operation_coding_system): Revert the change from 2006-05-29.
2006-07-29 10:59:50 +00:00
Kim F. Storm
fcad4ec4e9
(Fcheck_coding_system): Use xsignal1. Remove loop.
...
(Fdefine_coding_system_internal): Use xsignal1.
2006-07-18 13:26:12 +00:00
Richard M. Stallman
74b08af946
(Ffind_operation_coding_system): Doc fix.
2006-05-30 04:33:21 +00:00
Eli Zaretskii
a952cebe16
(Ffind_operation_coding_system): Doc fix.
2006-05-29 21:44:59 +00:00
Kenichi Handa
7311509ee6
(Ffind_operation_coding_system): Call a function by
...
safe_call1 instead of call1.
2006-05-29 00:57:27 +00:00
Kenichi Handa
a9e2078b71
(Ffind_operation_coding_system): Allow (FILENAME . BUFFER) in TARGET.
2006-05-26 04:48:21 +00:00
Kenichi Handa
0c2660c849
(Qascii_incompatible): New variable.
...
(syms_of_coding): Setup Qascii_incompatible.
(setup_coding_system): Be sure to initialize coding->common_flags.
Check `ascii-incompatible' property of the coding system.
2006-05-18 02:19:01 +00:00
Kenichi Handa
3f0b133f76
(setup_coding_system): For invalid coding-system, set
...
coding->eol_type to CODING_EOL_UNDECIDED.
(encode_coding): Cancel previous change.
(shrink_encoding_region): Likewise.
(code_convert_region1): Likewise.
(code_convert_string1): Likewise.
(code_convert_string_norecord): Likewise.
2006-05-08 05:25:02 +00:00
Kenichi Handa
6e9715ae06
(setup_coding_system): If eol-type is not yet decided
...
and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
If coding_system is nil, return 0.
(code_convert_region1): Even if coding_system is nil, don't skip
conversion if system_eol_type is not LF.
(code_convert_string1): Likewise.
(code_convert_string_norecord): Likewise.
2006-04-13 06:47:18 +00:00
Kenichi Handa
73ec0f8900
(shrink_encoding_region): If eol_type is not yet decided and
...
system_eol_type is not LF, don't shrink.
2006-04-13 04:58:07 +00:00
Kenichi Handa
9642847f36
(encode_coding): If eol_type is not yet decided, use
...
system_eol_type.
2006-04-13 04:39:20 +00:00
Kenichi Handa
2b89a53fc4
(setup_coding_system): Fix previous change.
2006-04-13 04:25:44 +00:00
Kenichi Handa
957b3c5f2f
(setup_coding_system): Use system_eol_type for default
...
coding->eol_type.
2006-04-12 05:48:37 +00:00
Kenichi Handa
71630f33d0
(DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
...
ASCII component of a composition.
2006-03-09 12:20:57 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Kenichi Handa
999a0fe581
(decode_composition_emacs_mule): Fix handling of
...
incorrect format data.
2006-02-02 12:47:04 +00:00
Kenichi Handa
ce03bf76b9
Copyright fixed
2005-12-19 07:04:44 +00:00
Kenichi Handa
89aa725ad6
(code_convert_region_unwind): GCPRO arg.
2005-12-14 00:43:36 +00:00
Kenichi Handa
24a2b28227
(code_convert_region_unwind): Argument format changed.
...
(run_pre_post_conversion_on_str): If pre-write-conversion function
changed the current buffer, delete the new buffer.
(run_pre_write_conversin_on_c_str): Likewise.
2005-09-14 07:06:20 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
Kenichi Handa
16ef9c5612
(code_convert_region_unwind): ARG is changed to a cons.
...
(code_convert_region): Adjusted for the above change.
(set_conversion_work_buffer): If the work buffer is already in
use, generate a new buffer and return it. Otherwise return Qnil.
(run_pre_post_conversion_on_str): Adjusted for the above change.
(run_pre_write_conversin_on_c_str): Likewise.
2005-07-14 07:57:42 +00:00
Kim F. Storm
387f6ba5c2
* coding.c (Qprocess_argument):
...
* coding.h (Qprocess_argument): Remove unused var.
2005-07-12 13:16:18 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Stefan Monnier
737ccba9d9
(run_pre_post_conversion_on_str): Remove unused var `buf'.
2005-06-13 20:47:42 +00:00
Kim F. Storm
c3912f23e3
(decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2005-06-03 23:02:50 +00:00
Kim F. Storm
d12168d677
Typo in comment.
2005-04-21 23:36:16 +00:00
Kenichi Handa
4220560759
(Vcoding_category_list): Docstring fix.
2005-03-31 11:21:14 +00:00
Kenichi Handa
dc3a0017db
(syms_of_coding): Suggest to use set-coding-category in
...
the docstring of coding-category-list.
2005-03-25 04:28:40 +00:00
Kenichi Handa
0ec31faf30
(syms_of_coding): Docstring of coding-category-list fixed.
2005-03-15 06:26:15 +00:00
Kenichi Handa
3bb917bff6
(encode_coding_string): Always return a unibyte string.
...
If NOCOPY is nonzero and there's no need of encoding, make STR
unibyte directly.
2005-02-14 01:04:50 +00:00
Kenichi Handa
2d4430a8eb
(decode_coding_iso2022): Translate invalid codes if
...
translation-table is specified.
2005-01-18 00:11:43 +00:00
Dan Nicolaescu
4b9829242b
(decode_coding): Fix previous change.
2004-12-28 18:22:55 +00:00
Dan Nicolaescu
5bdca8af0d
(decode_coding_XXX, decode_composition_emacs_mule)
...
(decode_coding_emacs_mule, encode_coding_emacs_mule)
(decode_coding_iso2022, encode_designation_at_bol)
(encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
(decode_coding): Constify arguments and local vars.
2004-12-28 14:50:49 +00:00
Kenichi Handa
b3ebb2d471
(code_convert_region): Fix calculation of `ratio'.
2004-12-27 05:51:40 +00:00
Kenichi Handa
2a47931bdb
(Vcode_conversion_workbuf_name): New variable.
...
(syms_of_coding): Initialize and staticpro it.
(set_conversion_work_buffer): New function.
(run_pre_post_conversion_on_str): Use it.
(run_pre_write_conversin_on_c_str): New function.
2004-11-30 08:07:11 +00:00
Richard M. Stallman
8e7a47862a
(run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2004-11-25 03:18:31 +00:00
Kenichi Handa
ce559e6f5b
(code_convert_region): Don't skip ASCIIs if there are compositions to encode.
...
Free composition data.
(encode_coding_string): Likewise.
2004-09-29 23:40:30 +00:00