Commit graph

324 commits

Author SHA1 Message Date
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
Kenichi Handa
160a708c6f (decode_coding_string): Adjust coding->consumed, and
etc. with shrinked_bytes.
2004-08-03 05:12:00 +00:00
Kim F. Storm
43e4a82f6e (MAX_ALLOCA): Remove define. 2004-06-21 21:53:27 +00:00
Kenichi Handa
230779b9a3 (encode_coding_string): Check CODING_FINISH_INTERRUPT. 2004-06-11 05:56:44 +00:00
Kenichi Handa
12d5b1856c (find_safe_codings): Check NILP (safe_codings) only at
the necessary places.
2004-06-07 00:00:03 +00:00
Kenichi Handa
6239a668ad (Fset_safe_terminal_coding_system_internal): Set
suppress_error in safe_terminal_coding, not terminal_coding.
2004-05-23 23:56:57 +00:00
Kenichi Handa
6eced09c3d (decode_coding_emacs_mule): Handle insufficent source correctly. 2004-03-09 12:27:26 +00:00
Eli Zaretskii
38b92c4260 UTF-8 is now RFC3629. 2004-03-07 19:54:13 +00:00
Kenichi Handa
09721b316c (coding_restore_composition): Check invalid
composition data more rigidly.
2004-02-02 12:09:36 +00:00
Luc Teirlinck
de1d1a4051 (Fcheck_coding_system): Further doc fix. 2003-12-28 19:54:24 +00:00
Luc Teirlinck
303cdc2dfd (Fcheck_coding_system): Doc fix. 2003-12-28 19:47:58 +00:00
Kenichi Handa
47dc91adce (decode_coding_iso2022): Fix for preserving UTF-8
encoding sequence.
2003-12-03 08:23:53 +00:00
Stefan Monnier
316d4bf9e2 (coding_restore_composition): Lisp_Object/int mixup. 2003-11-17 23:23:15 +00:00
Kenichi Handa
4307d5349e (coding_allocate_composition_data): Reset
coding->composing to COMPOSITION_NO.
(coding_restore_composition): Detect invalid composition data.
Give Fstring and Fvector a Lispy integer, not C int.
2003-11-07 05:55:43 +00:00
Kenichi Handa
c2164d91db (Fcoding_system_p): Return t for auto-loading coding system. 2003-10-07 23:35:01 +00:00
Kenichi Handa
a362520d43 (Qcoding_system_define_form): New variable.
(syms_of_coding): Intern and staticpro it.
(Fcheck_coding_system): Try to autoload the definition of
CODING-SYSTEM.
2003-10-07 01:29:12 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
85478bc688 (decode_coding_iso2022): Initialized local variable c2.
(decode_coding_sjis_big5): Likewise.
2003-08-28 08:19:07 +00:00
Stefan Monnier
6ed0af6782 (run_pre_post_conversion_on_str): Use delete_all_overlays. 2003-07-22 19:06:12 +00:00
Stefan Monnier
6663843311 Include intervals.h for Fset_text_properties. 2003-07-09 20:25:02 +00:00
Stefan Monnier
d2394df5b5 (run_pre_post_conversion_on_str): Use new type for overlays_(before|after). 2003-07-09 14:52:55 +00:00
Kenichi Handa
a84f151963 _buffer_size): If coding->type is
coding_type_ccl, double magnification on CRLF encoding.
2003-06-04 12:43:09 +00:00
Dave Love
ecf488bc25 (Qutf_8): New.
(syms_of_coding): Intern it.
2003-06-02 18:49:29 +00:00
Kenichi Handa
fd3ae0b9de (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
is nonzero, accept multibyte form of eight-bit-control chars.
(decode_composition_emacs_mule): Likewise.
(decode_coding_emacs_mule): Likewise.
(encode_coding_emacs_mule): If coding->flags is nonzero, produce
multibyte form of eight-bit-control chars.
2003-05-31 00:56:42 +00:00
Kenichi Handa
b671ed5e8e (ccl_coding_driver): Set ccl->eight_bit_control
property before calling ccl_driver.
2003-05-30 07:57:48 +00:00
Kenichi Handa
103e0180b3 *** empty log message *** 2003-05-28 23:27:28 +00:00
Stefan Monnier
f1ce3dcf39 (find_safe_codings): Remove unused var `i'. 2003-05-25 17:41:21 +00:00
Andreas Schwab
58f9937928 (find_safe_codings): Fix last change. 2003-05-24 20:11:55 +00:00
Kenichi Handa
0eecad4333 (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
of CODING_REPLACEMENT_CHARACTER.
(decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
check this flag on encoding.
(encode_coding_sjis_big5): Check
CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
(Fset_terminal_coding_system_internal): Set
CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
instead of setting CODING_FLAG_ISO_SAFE flag in
terminal_coding.flags.
2003-05-22 05:53:23 +00:00
Kenichi Handa
439ad9ea83 (decode_coding_string): Handle post-read-conversion
even if the coding doesn't require decoding.
2003-05-19 13:02:39 +00:00
Dave Love
7c695ab92f (Vlast_coding_system_used): Doc fix. 2003-05-08 17:49:05 +00:00
Kenichi Handa
b666620cdd (coding_system_accept_latin_extra_p): Delete this
function.
(find_safe_codings): Pay attention to
the property tranlsation-table-for-encode of each codings.
(syms_of_coding): Give Qtranslation_table the extra slot number 2.
2003-05-01 04:34:57 +00:00
Kenichi Handa
7de6cd0aee (coding_system_accept_latin_extra_p): New function.
(find_safe_codings): Pay attention to characters registered in
latin-extra-code-table.
2003-04-08 11:27:28 +00:00