1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-14 02:42:46 -07:00
Commit graph

26840 commits

Author SHA1 Message Date
Kenichi Handa
a79a3c798b Adjusted for the change of make-coding-system. Register
coding-priority key in language-info-alist.
1998-01-22 01:46:28 +00:00
Kenichi Handa
8f3969f8ab In setup-LANGUAGE-environment functions,
call set-language-environment-coding-systems.
1998-01-22 01:45:51 +00:00
Kenichi Handa
5e92d2b801 In setup-LANGUAGE-environment functions, adjust for the change of
setup-8-bit-environment.
1998-01-22 01:45:17 +00:00
Kenichi Handa
2791eeaaad (skkdic-jbytes): Variable deleted.
All codes using this variable adjusted.
1998-01-22 01:42:20 +00:00
Kenichi Handa
6c7f60586c Comment about CCL syntax modified.
(ccl-command-table): Add read-multibyte-character,
write-multibyte-character, and unify-character.
(ccl-code-table): Add ex-cmd.
(ccl-extended-code-table): New variable.
(ccl-embed-extended-command): New function.
(ccl-compile-read-multibyte-character,
ccl-compile-write-multibyte-character,
ccl-compile-unify-character, ccl-compile-iterate-multiple-map,
ccl-compile-translate-multiple-map,
ccl-compile-translate-single-map,
ccl-compile-multiple-map-function) New functions.
(ccl-dump-ex-cmd, ccl-dump-read-multibyte-character,
ccl-dump-write-multibyte-character, ccl-dump-unify-character,
ccl-dump-unify-character-const-tbl, ccl-dump-iterate-multiple-map,
ccl-dump-translate-multiple-map, ccl-dump-translate-single-map):
New functions.
1998-01-22 01:42:20 +00:00
Kenichi Handa
777cfce616 Put `prefered-coding-system'
property to each character set.
1998-01-22 01:42:20 +00:00
Kenichi Handa
54b226f7e5 (set-language-info): Doc-string
describes `coding-priority' KEY.
(set-language-environment-coding-systems): New function.
(list-subset-p): New function.
(select-safe-coding-system): New function.
(set-language-info): New optional args DESCRIBE-MAP and SETUP-MAP.
(set-language-info-alist): New optionla arg PARENTS.  Call
set-language-info with apropriate DESCRIBE-MAP and SETUP-MAP args.
(set-language-environment-coding-systems): New function.

(prefer-coding-system): Call update-iso-coding-systems.
1998-01-22 01:42:20 +00:00
Kenichi Handa
40e98681b4 Adjusted for the change of the
format of make-coding-system's 6th argument.  Initialize
coding-category-iso-7-tight to iso-2022-jp.
(oldjis-newjis-jisroman-ascii): New character unification table.
(standarad-character-unification-table-for-decode): Initialize to
`unification-table' property of `oldjis-newjis-jisroman-ascii'.
1998-01-22 01:42:20 +00:00
Kenichi Handa
0691ad6147 (describe-coding-system): Change the
format of showing safe charsets.
1998-01-22 01:42:20 +00:00
Kenichi Handa
dbea676644 (find-safe-coding-system): Moved to
mule-cmds.el.
(detect-coding-with-priority): New macro.
(detect-coding-with-language-environment): New function.

(string-to-sequence): Adjusted for the change of
multibyte-form handling (byte-base to char-base).
(store-substring): Likewise.
(truncate-string-to-width): Likewise.
(decompose-region): Likewise.
(decompose-string): Likewise.
(decompose-composite-char): Call string instead of concat-chars.
1998-01-22 01:42:20 +00:00
Kenichi Handa
d9e3229d1e (define-character-unification-table): New
function.
(coding-system-base): Doc-string modified.
(make-coding-system): The 6th optional arg is changed to
PROPERTIES.
(set-buffer-file-coding-system): Show "(default, nil)" in prompt.
(set-coding-priority): Code tuned.
1998-01-22 01:42:20 +00:00
Kenichi Handa
f9222bef23 (quail-show-kbd-layout): Bug fix for the
case that TRANSLATION is a cons.
1998-01-22 01:42:20 +00:00
Kenichi Handa
5e7e990e1a (sendmail-coding-system): Doc-string modified.
(sendmail-send-it): Select a safe coding system to encode an
outgoing mail.
1998-01-22 01:41:59 +00:00
Kenichi Handa
b3fffbb92b Call update-iso-coding-systems after loading files
under language subdir.
1998-01-22 01:41:18 +00:00
Kenichi Handa
1e9c7b7d91 (adjust_before_replace, adjust_after_replace): New
functions.
1998-01-22 01:26:45 +00:00
Kenichi Handa
321fecde5b (Fcall_process): Use raw-text instead of emacs-mule
when enable-multibyte-characters is nil.  Adjusted for the change
of encode_coding and decode_coding.
1998-01-22 01:26:45 +00:00
Kenichi Handa
080cb8cd45 (detect_coding_system): Extern it. 1998-01-22 01:26:45 +00:00
Kenichi Handa
e34b1164c1 (Vccl_translation_table_vector, Qccl_program,
Qccl_translation_table, Qccl_translation_table_id): New variables.
append new symbols.  Qccl_translation_table and
Qccl_translation_table_id.
(CCL_Call): Fix the comment.
(CCL_ReadMultibyteCharacter, CCL_WriteMultibyteCharacter,
CCL_UnifyCharacter, CCL_UnifyCharacterConstTbl,
CCL_IterateMultipleMap, CCL_TranslateMultipleMap): New macros for
CCL Commands.
(EXCMD): New macro.
(ccl_driver): New case lable `CCL_Extention'.
(setup_ccl_program): Initialize the member `private_state' of CCL.
(Fregister_ccl_program): Delete unused variable IDX.
(Fregister_ccl_translation_table): New function.
(syms_of_ccl): Intern and staticpro Qccl_program,
Qccl_translation_table, and Qccl_translation_table_id.  Declare
`ccl-translation-table-vector' as a Lisp variable.  Declare
register-ccl-translation-table as a Lisp function.
1998-01-22 01:26:45 +00:00
Kenichi Handa
eacba2473e Definition of macros CCL_STAT_XXX are moved from ccl.c to here.
(struct ccl_program): New member private_state.
1998-01-22 01:26:45 +00:00
Kenichi Handa
b0e3cf2b56 (min_composite_char): New variable.
(Vcharacter_unification_table_vector): New variable.
(syms_of_charset): Declare it as a Lisp symbol.  Declare a Lisp
variable min-composite-char.
(unify_char): Delete unnecessary codes.
1998-01-22 01:26:45 +00:00
Kenichi Handa
c1f6608b5f (BCOPY_SHORT): New macro.
(MAX_CHAR_COMPOSITION): New macro.
(CHAR_CHARSET): Check more strictly.
(CODING_FLAG_ISO_DESIGNATION): New macro.
(Vcharacter_unification_table_vector): Extern it.
(UNIFICATION_ID_TABLE): New macro.
1998-01-22 01:26:45 +00:00
Kenichi Handa
d46c5b1251 Vselect_safe_coding_system_function): New variable.
(coding_category_table): This variable deleted.
(Vcoding_category_table): New variable.
(coding_category_name): Add "coding-category-iso-7-tight".
(detect_coding_iso2022): Check the mask
CODING_FLAG_ISO_DESIGNATION in CODING->FLAGS.  Check a new coding
category coding-category-iso-7-tight.
(DECODE_DESIGNATION): Decode only such designations that CODING
can handle.
(check_composing_code): New function.
(decode_coding_iso2022): Decode only such characters that CODING
can handle.
(encode_coding_iso2022): Before and after encoding composite
characters, reset designation and invocation status.
(detect_coding_sjis): Delete unnecessary check.
(detect_coding_big5): Likewise.
(encode_designation_at_bol): Check the validity of requested
designation register.
(setup_coding_system): Set requested designation registers for
non-supported charsets to
CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION.  Set mask
CODING_FLAG_ISO_DESIGNATION in CODING->FLAGS.  Code tuned for
no-conversion and undecided.
(detect_coding): Adjusted for the new variable
Vcoding_category_table.
(syms_of_coding): Initialize Vcoding_category_table and staticpro
it.  Register select-safe-coding-system as a Lisp variable.

(DECODE_CHARACTER_ASCII): Update coding->produced_char;
(DECODE_CHARACTER_DIMENSION1): Likewise.
(Qraw_text, Qcoding_category): New variables.
(syms_of_coding): Intern and staticpro them.
(coding_system_table): New variable.
(CHARSET_OK, SHIFT_OUT_OK): New macros.
(detect_coding_iso2022): Detection algorithm improved.
(decode_coding_iso2022): Arg CONSUMED deleted, and the meaning of
return value changed.  Update members produced, produced_char,
consumed, consumed_char of the struct *coding.  Pay attention to
CODING_MODE_INHIBIT_INCONSISTENT_EOL.
(encode_coding_iso2022): Likewise.
(decode_coding_sjis_big5, encode_coding_sjis_big5): Likewise.
(decode_eol, encode_eol): Likewise.
(ENCODE_ISO_CHARACTER): Update coding->consumed_char.
(DECODE_SJIS_BIG5_CHARACTER): Update coding->produced_char.
(ENCODE_SJIS_BIG5_CHARACTER): Update coding->consumed_char.
(detect_coding(detect_coding(detect_ITIES and SKIP.
(detect_coding): Adjusted for the change of detect_coding_mask.
Update coding->heading_ascii.
(detect_eol_type): New arg SKIP.
(detect_eol): Adjusted for the change of detect_eol_type.
(ccl_codign_driver): New function.
(decode_coding): Arg CONSUMED deleted, and the meaning of return
value changed.  Update members produced, produced_char, consumed,
consumed_char of the struct *coding.
(encode_coding): Likewise.
(shrink_decoding_region, shrink_encoding_region): New function.
(code_convert_region, code_convert_string): Completely rewritten.
(detect_coding_sy(detect_coding_sy(detect_coding_sy(detect_coding_sy(detect_codiT.
(Fdetect_coding_string): New function.
(Fdecode_coding_region, Fencode_coding_region): Adjusted for the
change of code_convert_region.
(Fdecode_coding_string, Fencode_coding_string): Adjusted for the
change of code_convert_string.
(Fupdate_iso_coding_systems): New function.
(init_coding_once): Initialize coding_system_table.
1998-01-22 01:26:45 +00:00
Kenichi Handa
658cc2522e (CODING_FLAG_ISO_DESIGNATION): New macro.
(struct iso2022_spec): New member.
last_invalid_designation_register.
(struct coding_system): New member inhibit_inconsistent_eol_type.
(CODING_CATEGORY_IDX_ISO_7_TIGHT,
CODING_CATEGORY_MASK_ISO_7_TIGHT): New macros.
(CODING_CATEGORY_MASK_ANY): Include
CODING_CATEGORY_MASK_ISO_7_TIGHT.
(coding_category_table, coding_category_name): Extern deleted.
(Vselect_safe_coding_system_function): Extern it.

(CODING_FINISH_XXX): New macros.
(CODING_MODE_XXX): New macros.
(struct coding_system): New member mode, category_idx,
heading_ascii.  Deleted members last_block, direction, selective,
carryover, carryover_size.
(CODING_MAY_REQUIRE_DECODING): New macro.
(CODING_CATEGORY_MASK_ISO_7BIT, CODING_CATEGORY_MASK_ISO_8BIT,
CODING_CATEGORY_MASK_ISO_SHIFT, CODING_CATEGORY_MASK_ISO): New
macros.
(Qraw_text): Extern it.
1998-01-22 01:26:45 +00:00
Kenichi Handa
ca2f68f8d9 (Faset): Allow setting a multibyte character in a
multibyte string as far as it doesn't change the size_byte of the
string.
1998-01-22 01:26:45 +00:00
Kenichi Handa
e7fbaa6567 (Fstart_process): Use raw-text instead of emacs-mule
if enable-multibyte-characters is nil.  Initialize members
decoding_carryover and encoding_carryover of PROC.
(create_process): Adjusted for the change of encode_coding.
(Fopen_network_stream): Initialize members decoding_carryover and
encoding_carryover of PROC.
(read_process_output): Adjusted for the change of decode_coding.
(send_process): Adjusted for the change of encode_coding.
1998-01-22 01:26:45 +00:00
Kenichi Handa
095d64ee6e (struct Lisp_Process): New members decoding_carryover
and encoding_carryover.
1998-01-22 01:26:45 +00:00
Kenichi Handa
c8a6d68aed (Finsert_file_contents): Even if
enable-multibyte-characters is nil, we must check `coding:' tag
and `file-coding-system-alist' to handle eol-conversion.

(Finsert_file_contents): Adjusted for the change of
struct coding_system and function decode_coding.  For normail file
reading, use code_convert_region.
(Fwrite_region): Adjusted for the change of struct coding_system.
(e_write): Adjusted for the change of encode_coding.
1998-01-22 01:26:45 +00:00
Kenichi Handa
0ab6a3d896 (mapcar1): Keep i' in i_before' before `i' is
incremented by FETCH_STRING_CHAR_ADVANCE.
1998-01-22 01:26:45 +00:00
Kenichi Handa
6589fd67a7 (encode_terminal_code): Adjusted for the change of
encode_coding.
(write_glyphs): Likewise.  Adjusted for the change of struct
coding_system.
(insert_glyphs): Likewise.
1998-01-22 01:26:45 +00:00
Kenichi Handa
9391d06ab4 (selection_data_to_lisp_data): Adjusted for the change
of decode_coding.
(lisp_data_to_selection_data): Adjusted for the change of
encode_coding.
(syms_of_xselect): Initialize clipboard-coding-system to
compound-text.
1998-01-22 01:26:45 +00:00
Richard M. Stallman
b3d8c659f5 (PC-try-load-many-files): Load files in reverse
order so they come in the right order in the buffer list.
1998-01-22 00:44:59 +00:00
Richard M. Stallman
4a2f9c6aef Update copyright year. 1998-01-21 23:32:12 +00:00
Richard M. Stallman
418cd8ca01 (Fsubstitute_in_file_name): Use unibyte_char_to_multibyte. 1998-01-21 22:53:11 +00:00
Richard M. Stallman
31c8f88101 Update copyright year. 1998-01-21 22:22:17 +00:00
Richard M. Stallman
35e623fb89 (nonascii_insert_offset): Variable moved from cmds.c.
(syms_of_charset): Initialize variable.

(unibyte_char_to_multibyte): New function.
(DEFAULT_NONASCII_INSERT_OFFSET): New macro definition.
1998-01-21 22:06:06 +00:00
Richard M. Stallman
b29ff19427 (skip_chars): Use unibyte_char_to_multibyte, 1998-01-21 22:02:05 +00:00
Richard M. Stallman
6f0429a9a6 (message_dolog): Use unibyte_char_to_multibyte.
Pass different args to scan_newline.
Properly compare oldpoint with Z.
1998-01-21 22:00:26 +00:00
Richard M. Stallman
2e9dc12527 (command_loop_1): Use unibyte_char_to_multibyte. 1998-01-21 21:57:24 +00:00
Richard M. Stallman
49bc32b0a5 (internal_self_insert, Fself_insert_command):
Use unibyte_char_to_multibyte.
(nonascii_insert_offset): Variable moved to charset.c.
(syms_of_cmds): Don't initialize nonascii_insert_offset.
1998-01-21 21:56:46 +00:00
Richard M. Stallman
14a65ffe42 (WINDOW_RIGHT_MARGIN): Deduct width of vertical line
if frame has no scroll bars.
1998-01-21 21:43:58 +00:00
Richard M. Stallman
06f57aa7fd (concat): Use unibyte_char_to_multibyte.
Fix lossage in installing previous patch.
1998-01-21 21:43:30 +00:00
Richard M. Stallman
d0628b063d (set_buffer_if_live): New function. 1998-01-21 21:42:19 +00:00
Richard M. Stallman
de404585f8 (Fbyte_code) <Bsave_current_buffer_1>: Use set_buffer_if_live. 1998-01-21 21:41:27 +00:00
Richard M. Stallman
cb5e5f74c4 (Fsave_current_buffer): Use set_buffer_if_live. 1998-01-21 21:40:51 +00:00
Richard M. Stallman
acfd101152 (command-line-1): Add alternate startup message
for use when there is a mouse.
1998-01-21 21:39:02 +00:00
Richard M. Stallman
813b81b37d (current_column_1): Eliminate argument POS; use PT and PT_BYTE.
When doing FETCH_BYTE, use scan_byte.
(current_column): Check whether buffer really has multibyte chars,
not whether they are enabled.
1998-01-21 08:16:28 +00:00
Richard M. Stallman
09841f8db2 (tq-filter): Use with-current-buffer. 1998-01-21 05:26:11 +00:00
Richard M. Stallman
e8c86f8d74 (ange-ftp-date-regexp): Make l pattern match any non-ASCII char. 1998-01-21 01:41:23 +00:00
Richard M. Stallman
d7760ca97f (unreadchar): For unreading an ASCII char
thru a buffer or marker, really decrement point or the marker position.
1998-01-21 00:37:15 +00:00
Richard M. Stallman
1d01033382 (info-lookup): Report if Info-goto-node fails.
(info-lookup-make-completions): Likewise.
1998-01-20 20:09:39 +00:00