Commit graph

273 commits

Author SHA1 Message Date
Kenichi Handa
7717c392c0 (detect_coding_iso2022): Distinguish coding-category-iso-7-else and
coding-category-iso-8-else.
1997-07-15 08:21:17 +00:00
Richard M. Stallman
f4dee5826e Comment changes. 1997-07-13 20:43:31 +00:00
Richard M. Stallman
5d632ccf24 (Ffind_coding_system): Use call1, not call2. 1997-07-12 06:45:09 +00:00
Kenichi Handa
9ce27fde6a (Qemacs_mule, inhibit_eol_conversion): New variables.
(setup_coding_system): If inhibit_eol_conversion is 0, set
coding->eol_type to CODING_EOL_LF.
(syms_of_coding): Initialize and staticpro Qemacs_mule.  Change
error-message property of coding-system-error.  Declare
inhibit-eol-conversion as Lisp variable.
(system_eol_type): New variable.
(init_coding_once): Initialize it.
(ENCODE_SJIS_BIG5_CHARACTER): Bug in encoding a BIG5 character
fixed.
1997-07-07 00:59:44 +00:00
Richard M. Stallman
2e34157cd9 Fix bugs with inappropriate mixing of Lisp_Object with int. 1997-07-04 20:44:52 +00:00
Kenichi Handa
a5d301dfec (Vstandard_character_unification_table_for_decode):
Name changed from Vstandard_character_unification_table_for_read.
(Vstandard_character_unification_table_for_encode): Name changed
from Vstandard_character_unification_table_for_write.
(Qcharacter_unification_table_for_decode): New variable.
(Qcharacter_unification_table_for_encode): New variable.
(decode_coding_iso2022): Adjusted for the above name change.
(encode_coding_iso2022): Likewise.
(ENCODE_ISO_CHARACTER): Bug of handling return value of unify_char
fixed.
(DECODE_SJIS_BIG5_CHARACTER): New macro.
(decode_coding_sjis_big5): Handle character unificatoin table.
Use macro DECODE_SJIS_BIG5_CHARACTER.
(encode_coding_sjis_big5): Handle character unificatoin table.
Use macro ENCODE_SJIS_BIG5_CHARACTER.
(setup_coding_system): Handle members
character_unification_table_for_decode and
character_unification_table_for_encode of the variable coding.
(Ffind_operation_coding_system): Renamed from Ffind_coding_system.
(syms_of_coding): Initialize and staticpro
Qcharacter_unification_table_for_decode and
Qcharacter_unification_table_for_decode.  Declare
Ffind_operation_coding_system as Lisp functions.  Declare
Vstandard_character_unification_table_for_decode and
Vstandard_character_unification_table_for_encode as Lisp
variables.
1997-07-02 12:53:53 +00:00
Richard M. Stallman
458822a0bf (syms_of_coding): Change initial values of eol_mnemonic_... variables. 1997-07-02 02:56:02 +00:00
Kenichi Handa
765a2ca545 (detect_coding_iso2022): Initilize mask correctly. 1997-06-18 13:09:00 +00:00
Richard M. Stallman
203cb91615 Change copyright notices. 1997-06-16 07:29:16 +00:00
Kenichi Handa
02ba47237b (Vcoding_system_alist): Deleted.
(Qcoding_system_spec): Renamed from Qcoding_system_vector.
(Vdefault_process_coding_system, Vfile_coding_system_alist,
Vprocess_coding_system_alist, Vnetwork_coding_system_alist): New
variables.
(Ffind_coding_system): Adjusted for the above change.
(syms_of_coding): Declare them as lisp variables.
(Fcheck_coding_system): Pass list as DATA argument to Fsignal.
1997-06-09 12:59:12 +00:00
Kenichi Handa
1ba9e4ab9c (encode_invocation_designation): Use macro
CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION.
(encode_designation_at_bol, setup_coding_system): Likewise.
Fset_terminal_coding_system_internal): Renamed from
Fset_terminal_coding_system.  Make it non-interactive.  Do not
call Fredraw_display ().
(Fset_keyboard_coding_system_internal): Renamed from
Fset_keyboard_coding_system.  Make it non-interactive.
1997-05-28 04:36:27 +00:00
Kenichi Handa
0ef691383d Name change through the code:
coding-category-internal => coding-category-emacs-mule,
XXX_coding_internal => XXX_coding_emacs_mule,
coding_type_internal => coding_type_emacs_mule,
coding_type_automatic => coding_type_undecided,
CODING_CATEGORY_MASK_INTERNAL => CODING_CATEGORY_MASK_EMACS_MULE,
CODING_CATEGORY_IDX_INTERNAL => CODING_CATEGORY_IDX_EMACS_MULE,
CODING_EOL_AUTOMATIC => CODING_EOL_UNDECIDED.
1997-05-16 00:43:29 +00:00
Kenichi Handa
bdd9fb4867 (Valternate_charset_table): The valiable deleted.
(Venable_character_unification,
Vstandard_character_unification_table_for_read,
Vstandard_character_unification_table_for_write,
Qcharacter_unification_table): New variables.
(syms_of_coding): Initialize and declare them.
(DECODE_ISO_CHARACTER): Modified to handle a character unification
table instead of Valternate_charset_table.
(DECODE_DESIGNATION): Delete handling of Valternate_charset_table.
(decode_coding_iso2022): Handle a character unification table.
(ENCODE_ISO_CHARACTER): New macro.
(encode_designation_at_bol): Handle a character unification table.
Do not return -1 even if end-of-line is not in the current run.
(encode_coding_iso2022): Handle a character unification table.
Call macro ENCODE_ISO_CHARACTER instead of calling
ENCODE_ISO_CHARACTER_DIMENSION1 and
ENCODE_ISO_CHARACTER_DIMENSION2 directly.  Check the size of
carryover before copying it to destination.
(setup_coding_system): Initialize the member
character_unification_table of the struct coding system to Qnil.
(Fset_keyboard_coding_system): Doc string augmented.
1997-05-10 03:37:01 +00:00
Richard M. Stallman
9d991de859 (Fread_coding_system, Fread_non_nil_coding_system):
Pass new arg to Fcompleting_read.
1997-05-10 03:19:20 +00:00
Kenichi Handa
dec137e53f (setup_coding_system): Setup coding->eol_type as LF
for a invalid coding system.
1997-04-16 01:04:54 +00:00
Karl Heuer
efee68610e (Ffind_coding_system): Don't use Lisp_Object as integer. 1997-04-10 21:53:28 +00:00
Kenichi Handa
bcf26d6a7d (detect_coding_iso2022, detect_coding_mask): Ignore
invalid ESC sequence for ISO 2022.
(Fencode_sjis_char, Fencode_big5_char): Adjusted for the change of
SPLIT_CHAR.
1997-04-07 07:12:13 +00:00
Richard M. Stallman
ccdb79f5d9 (Ffind_coding_system): Doc fix. 1997-04-05 07:48:17 +00:00
Kenichi Handa
467e767554 Adjusted for the change of MAX_CHARSET. 1997-03-18 23:31:34 +00:00
Kenichi Handa
bfd9904870 (decode_eol): Fix bug of converting CRLF to LF. 1997-03-05 07:02:02 +00:00
Kenichi Handa
e0e989f659 (create_process, Fopen_network_stream): Typo in indexes
of array proc_encode_coding_system fixed.
Remove prefix "coding-system-" from coding system symbol names.
(encode_coding) : Fix typo ("=" -> "==").
(detect_coding_iso2022): Detect coding-category-iso-8-2
more precisely.
(ENCODE_RESET_PLANE_AND_REGISTER): Argument `eol' is
deleted.  Don't call ENCODE_DESIGNATION if nothing designated
initially.
(encode_designation_at_bol) New function.
(encode_coding_iso2022): Handle CODING_FLAG_ISO_INIT_AT_BOL and
CODING_FLAG_ISO_DESIGNATE_AT_BOL.
(setup_coding_system): Now, flags of ISO2022 coding
systems contains charsets instead of charset IDs.
(detect_coding_iso2022, decode_coding_iso2022): Make the code
robust against invalid SI and SO.
(Ffind_coding_system, syms_of_coding): Escape newlines in docstring.
(setup_coding_system): Correct setting coding->symbol
and coding->eol_type.  The performance improved.
1997-02-27 11:10:42 +00:00
Karl Heuer
369314dc63 Fix FSF address in comment. 1997-02-23 09:20:52 +00:00
Karl Heuer
4ed4686978 Initial revision 1997-02-20 07:02:49 +00:00