1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 20:50:53 -08:00
Commit graph

401 commits

Author SHA1 Message Date
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
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