Commit graph

292 commits

Author SHA1 Message Date
Kenichi Handa
463f5630a5 New directory 2003-09-08 11:56:09 +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
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