summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* (Fiso_charset): Doc-string modified.Kenichi Handa1998-02-041-1/+7
|
* (Faref, Faset): Allow indexing a char-tableRichard M. Stallman1998-02-031-2/+2
| | | | directly by numbers up to CHAR_TABLE_ORDINARY_SLOTS.
* (Fformat): If MULTIBYTE is changed to 1Richard M. Stallman1998-02-031-6/+25
| | | | after we start computing TOTAL, jump back to `retry' (a new label).
* (Fmodify_category_entry): Doc fix.Richard M. Stallman1998-02-031-23/+25
| | | | | | | | (Fdescribe_categories): Renamed from Fdescribe_category. (syms_of_category): Corresponding changes. (Fcategory_set_mnemonics): Doc fix. (Fchar_category_set): Doc fix. (Fmake_category_set): Doc fix.
* (search_buffer): New args pos_byte and lim_byte.Richard M. Stallman1998-02-031-11/+16
| | | | (search_command): Pass new args.
* (Fcall_process): Allow creating a new buffer for the output.Richard M. Stallman1998-02-031-1/+1
|
* (float_to_string): Handle infinities and NaN specially.Richard M. Stallman1998-02-021-0/+20
|
* (read1): Handle infinities, NaN and -0.0 specially.Richard M. Stallman1998-02-021-1/+28
| | | | (isfloat_string): Accept e+INF and e+NAN as exponents.
* (concat): Handle bool-vectors correctly.Richard M. Stallman1998-02-021-30/+34
|
* (concat): If making a string, a nonempty bool-vector is error.Richard M. Stallman1998-02-021-5/+69
| | | | | | | | (string_make_multibyte): In all-ASCII case, return orig STRING. (Fstring_as_unibyte): New function. (Fstring_as_multibyte): New function. (syms_of_fns): defsubr them.
* (CONVERTED_BYTE_SIZE): Fix the logic.Kenichi Handa1998-01-301-4/+11
| | | | | (Fformat): Update the variable MULTIBYTE according to the result of Fprin1_to_string. Free BUF after making Lisp string from it.
* (ENCODE_ISO_CHARACTER): Pay attention toKenichi Handa1998-01-301-48/+46
| | | | | | | | | | | CODING_FLAG_ISO_USE_ROMAN and CODING_FLAG_ISO_USE_OLDJIS. (code_convert_region1): New function. (Fdecode_coding_region): Call code_convert_region1. (Fencode_coding_region): Likewise. (code_convert_string1): New function. (Fdecode_coding_string): Call code_convert_string1. (Fencode_coding_string): Likewise. /
* (Fsubstitute_command_keys): Declare length_byte out ofKenichi Handa1998-01-301-3/+1
| | | | internal block.
* (DECODE_SJIS_BIG5_CHARACTER): Don't have to increaseKenichi Handa1998-01-281-2/+1
| | | | | coding->produced_char here. (code_convert_region): Initialize LEN_BYTE correctly.
* (syms_of_data): Register multibyte-string-p as a LispKenichi Handa1998-01-281-0/+1
| | | | function.
* (fast_string_match): Give re_search byte size ofKenichi Handa1998-01-281-6/+10
| | | | | | | STRING. (trivial_regexp_p): Initialize LEN to byte size of REGEXP. (search_buffer): Give re_search_2 STARTPOS, RANGE and STOP by counting them by bytes.
* (file_name_as_directory): For an empty name, return "/".Richard M. Stallman1998-01-271-3/+7
|
* (Fcall_process): Test only args past args[4] for multibyteness.Richard M. Stallman1998-01-271-1/+1
|
* (message_dolog): Cast M to unsigned char * to access bytes.Richard M. Stallman1998-01-271-1/+2
|
* (command_loop_1): Run post-command-hook before,Richard M. Stallman1998-01-271-16/+16
| | | | not after, clearing this-command-keys and updating last-command.
* (compare_window_configurations): New function.Richard M. Stallman1998-01-261-4/+99
|
* (internal_equal): Use compare_window_configurations.Richard M. Stallman1998-01-261-0/+2
|
* (standard_args): Add "-unibyte" aka "--unibyte".Richard M. Stallman1998-01-261-0/+13
| | | | (main): Handle --unibyte.
* (Funintern): Clear the symbol's obarray field.Richard M. Stallman1998-01-261-0/+2
|
* Comment change.Richard M. Stallman1998-01-251-0/+3
|
* (back_comment): Move the find_defun_start callRichard M. Stallman1998-01-251-4/+19
| | | | | | out of the scan_sexps_forward call. No need to call find_defun_start if we found the defun start in the initial scan.
* Delete garbage line "int use_dialog_box".Kenichi Handa1998-01-231-4/+0
|
* (Fread-string): Doc fix.Stephen Eglen1998-01-221-2/+5
| | | | (Fread-from-minibuffer): Doc fix.
* (SYSTEM_MALLOC): Defined.Richard M. Stallman1998-01-221-0/+5
|
* (Finsert_file_contents): Fix previous change.Kenichi Handa1998-01-221-2/+2
|
* (adjust_before_replace, adjust_after_replace): NewKenichi Handa1998-01-221-0/+28
| | | | functions.
* (Fcall_process): Use raw-text instead of emacs-muleKenichi Handa1998-01-221-29/+36
| | | | | when enable-multibyte-characters is nil. Adjusted for the change of encode_coding and decode_coding.
* (detect_coding_system): Extern it.Kenichi Handa1998-01-221-0/+1
|
* (Vccl_translation_table_vector, Qccl_program,Kenichi Handa1998-01-221-50/+638
| | | | | | | | | | | | | | | | | | | | 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.
* Definition of macros CCL_STAT_XXX are moved from ccl.c to here.Kenichi Handa1998-01-221-0/+13
| | | | (struct ccl_program): New member private_state.
* (min_composite_char): New variable.Kenichi Handa1998-01-221-7/+18
| | | | | | | (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.
* (BCOPY_SHORT): New macro.Kenichi Handa1998-01-221-1/+19
| | | | | | | | (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.
* Vselect_safe_coding_system_function): New variable.Kenichi Handa1998-01-221-960/+1771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (CODING_FLAG_ISO_DESIGNATION): New macro.Kenichi Handa1998-01-221-50/+101
| | | | | | | | | | | | | | | | | | | | | | | (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.
* (Faset): Allow setting a multibyte character in aKenichi Handa1998-01-221-8/+11
| | | | | multibyte string as far as it doesn't change the size_byte of the string.
* (Fstart_process): Use raw-text instead of emacs-muleKenichi Handa1998-01-221-51/+56
| | | | | | | | | | 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.
* (struct Lisp_Process): New members decoding_carryoverKenichi Handa1998-01-221-0/+4
| | | | and encoding_carryover.
* (Finsert_file_contents): Even ifKenichi Handa1998-01-221-137/+105
| | | | | | | | | | | 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.
* (mapcar1): Keep `i' in `i_before' before `i' isKenichi Handa1998-01-221-2/+4
| | | | incremented by FETCH_STRING_CHAR_ADVANCE.
* (encode_terminal_code): Adjusted for the change ofKenichi Handa1998-01-221-24/+22
| | | | | | | encode_coding. (write_glyphs): Likewise. Adjusted for the change of struct coding_system. (insert_glyphs): Likewise.
* (selection_data_to_lisp_data): Adjusted for the changeKenichi Handa1998-01-221-11/+12
| | | | | | | | 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.
* Update copyright year.Richard M. Stallman1998-01-2119-19/+22
|
* (Fsubstitute_in_file_name): Use unibyte_char_to_multibyte.Richard M. Stallman1998-01-211-4/+3
|
* Update copyright year.Richard M. Stallman1998-01-219-9/+9
|
* (nonascii_insert_offset): Variable moved from cmds.c.Richard M. Stallman1998-01-211-1/+31
| | | | | | | (syms_of_charset): Initialize variable. (unibyte_char_to_multibyte): New function. (DEFAULT_NONASCII_INSERT_OFFSET): New macro definition.