aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Kenichi Handa2000-05-231-0/+4
|
* (read_char): Allow character codes 128..255 to beKenichi Handa2000-05-221-0/+3
| | | | handled by input-method-function.
* (adjust_markers_for_replace): Fix previous change.Kenichi Handa2000-05-221-12/+12
| | | | | (adjust_after_replace): If PREV_TEXT is nil, call adjust_markers_for_insert, not adjust_markers_for_replace.
* *** empty log message ***Kenichi Handa2000-05-221-0/+6
|
* *** empty log message ***Gerd Moellmann2000-05-201-0/+14
|
* (toplevel) [UNIX98_PTYS]: Include stdlib.h.Gerd Moellmann2000-05-201-1/+1
|
* (HAVE_GRANDPT, HAVE_GETPT): New defines.Gerd Moellmann2000-05-201-0/+2
|
* (setup_pty): Treat case that UNIX98_PTYS is definedGerd Moellmann2000-05-201-1/+1
| | | | like SYSV_PTYS.
* (UNIX98_PTYS) [HAVE_GRANDPT]: Define.Gerd Moellmann2000-05-201-42/+40
| | | | | | (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF) [HAVE_GRANDPT]: Define. (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
* *** empty log message ***Kenichi Handa2000-05-201-0/+289
|
* (selection_data_to_lisp_data): Setup membersKenichi Handa2000-05-201-21/+17
| | | | | | src_multibyte and dst_multibyte of coding. Adjusted for the change for find_charset_in_str. (lisp_data_to_selection_data): Likewise.
* (get_next_display_element): Handle 8-bit charactersKenichi Handa2000-05-201-3/+8
| | | | | | | | correctly. (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN. (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
* (Fw32_set_clipboard_data): Setup membersKenichi Handa2000-05-201-14/+9
| | | | | | src_multibyte and dst_multibyte of coding. Adjusted for the change for find_charset_in_str. (Fw32_get_clipboard_data): Likewise.
* (w32_to_x_font): Setup members src_multibyte andKenichi Handa2000-05-201-0/+4
| | | | | dst_multibyte of coding. (x_to_w32_font): Likewise.
* (Fw16_set_clipboard_data): Setup membersKenichi Handa2000-05-201-14/+11
| | | | | | src_multibyte and dst_multibyte of coding. Adjusted for the change for find_charset_in_str. (Fw16_get_clipboard_data): Likewise.
* (produce_special_glyphs): Use CHAR_BYTES instead ofKenichi Handa2000-05-201-2/+2
| | | | CHAR_LEN.
* (wordify): Use FETCH_STRING_CHAR_ADVANCEKenichi Handa2000-05-201-13/+6
| | | | | | unconditionally. (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
* (Fstart_process): GCPRO current_dir before callingKenichi Handa2000-05-201-125/+130
| | | | | | | | | | | | | Ffind_operation_coding_system. Encode arguments here. (create_process): Don't encode arguments here. Setup src_multibyte and dst_multibyte members of struct coding. (read_process_output): Setup src_multibyte and dst_multibyte members of struct coding. If the output is to multibyte buffer, always decode the output of the process. Adjust the representation of 8-bit characters to the multibyteness of the output. (send_process): Setup coding->src_multibyte according to the multibyteness of the source.
* (print_object): Use FETCH_STRING_CHAR_ADVANCEKenichi Handa2000-05-201-6/+1
| | | | unconditionally.
* (read1): On reading multibyte string, be sure to makeKenichi Handa2000-05-201-11/+12
| | | | | all 8-bit chararacters in valid multibyte form. (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
* (Fsingle_key_description): Use SPLIT_CHAR instead ofKenichi Handa2000-05-201-22/+10
| | | | | | | | SPLIT_NON_ASCII_CHAR. (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally. (Fkey_description): Likewise.
* (adjust_markers_for_record_delete): Deleted.Kenichi Handa2000-05-201-633/+78
| | | | | | | | | | | | | | | | | | (adjust_markers_for_insert): Argument changed. Caller changed. (adjust_markers_for_replace): Likewise. (ADJUST_CHAR_POS, combine_bytes, byte_combining_error, CHECK_BYTE_COMBINING_FOR_INSERT): Deleted. (copy_text): Delete unused local varialbe c_save. For converting to multibyte, be sure to make all 8-bit characters in valid multibyte form. (count_size_as_multibyte): Handle 8-bit characters correctly. (insert_1_both, insert_from_string_1, insert_from_buffer_1, adjust_after_replace, replace_range, del_range_2) [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. (insert_1_both, insert_from_string_1, insert_from_buffer_1, adjust_after_replace, replace_range, del_range_2) Delete codes for handling byte combining. (adjust_before_replace): Deleted.
* (fontset_ref): Use SPLIT_CHAR instead ofKenichi Handa2000-05-201-3/+3
| | | | | SPLIT_NON_ASCII_CHAR. (fontset_ref_via_base, fontset_set): Likewise
* (concat): Handle 8-bit characters correctly.Kenichi Handa2000-05-191-69/+104
| | | | | | | | | | | | | | | | | | | | | (Fstring_as_unibyte): Be sure to make all 8-bit characters in unibyte in the result. (Fstring_as_multibyte): Be sure to make all 8-bit characters in valid multibyte form in the result. (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1 return -1, signal an error. (base64_encode_1): New arg MULTIBYTE. Get each character by CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte character is found, return -1. (Fbase64_decode_region): Delete codes for handling byte-combining. Treat each decoded byte as a unibyte character. (Fbase64_decode_string): Return unibyte string. (Fcompare_strings, concat, string_byte_to_char): Use FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off FETCH_STRING_CHAR_ADVANCE. (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally. (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
* (Finsert_file_contents): Setup src_multibyte andKenichi Handa2000-05-191-24/+27
| | | | | | | | dst_multibyte members of coding. On handling REPLACE on unibyte buffer, convert the result of decode_coding to unibyte. On inserting into a mutibyte buffer, always call code_convert_region. (e_write): Setup cdoing->src_multibyte according to the multibyteness of the source (buffer or string).
* (Fformat): Be sure to convert 8-bit characters toKenichi Handa2000-05-191-51/+22
| | | | | | | multibyte form. (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. (Ftranspose_region): Delete codes for handling byte combining.
* (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.Kenichi Handa2000-05-191-2/+2
| | | | (Faset): Likewise.
* (enum iso_code_class_type): Member ISO_control_code isKenichi Handa2000-05-191-13/+23
| | | | | | | | | | devided into ISO_control_0 and ISO_control_1. (struct coding_system): New members src_multibyte, dst_multibyte, errors, and result. Delete member fake_multibyte. (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is nonzero. (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is nonzero.
* (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->resutl toKenichi Handa2000-05-191-1363/+1220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CODING_FINISH_INSUFFICIENT_SRC if there's not enough source. (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE, EMIT_BYTES): New macros. (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII, DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These macros deleted. (CHECK_CODE_RANGE_A0_FF): This macro deleted. (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to check the validity of multibyte sequence. (decode_coding_emacs_mule): New function. (encode_coding_emacs_mule): New macro. (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from the source. (DECODE_ISO_CHARACTER): Just return a character code. (DECODE_COMPOSITION_START): Set coding->result instead of result. (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use EMIT_CHAR to produced decoded characters. Exit the loop only by macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last block here. (ENCODE_ISO_CHARACTER): Don't translate character here. Produce only position codes for an invalid character. (encode_designation_at_bol): Return new destination pointer. 5th arg DSTP is changed to DST. (encode_coding_iso2022, decode_coding_sjis_big5): Get a character from the source by ONE_MORE_CHAR. Don't handle the case of last block here. (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These macros deleted. (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8, detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and TWO_MORE_BYTES to fetch a byte from the source. (encode_eol): Pay attention to coding->src_multibyte. (detect_coding, detect_eol): Preserve members src_multibyte and dst_multibyte. (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text. (encoding_buffer_size): Set magnification to 3 for all coding systems that require encoding. (ccl_coding_driver): For decoding, be sure that the result is valid multibyte sequence. (decode_coding): Initialize coding->errors and coding->result. For emacs-mule, call decode_coding_emacs_mule. For no-conversion and raw-text, always call decode_eol. Handle the case of last block here. If not coding->dst_multibyte, convert the resulting sequence to unibyte. (encode_coding): Initialize coding->errors and coding->result. For emacs-mule, call encode_coding_emacs_mule. For no-conversion and raw-text, always call encode_eol. Handle the case of last block here. (shrink_decoding_region, shrink_encoding_region): Detect cases that we can't skip data more rigidly. (code_convert_region): Setup src_multibyte and dst_multibyte members of coding. For decoding, if the buffer is multibyte, convert the source sequence to unibyte in advance. For encoding, if the buffer is multibyte, convert the resulting sequence to multibyte afterward. (run_pre_post_conversion_on_str): New function. (code_convert_string): Deleted and divided into the following two. (decode_coding_string, encode_coding_string): New functions. (code_convert_string1, code_convert_string_norecord): Call one of above. (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. (Fset_terminal_coding_system_internal, Fset_safe_terminal_coding_system_internal): Setup src_multibyte and dst_multibyte members. (init_coding_once): Initialize iso_code_class with new enum ISO_control_0 and ISO_control_1.
* (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,Kenichi Handa2000-05-191-146/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CHARSET_8_BIT_GRAPHIC): New macros. (SINGLE_BYTE_CHAR_P): Make it faster by using casting. (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. (CHARSET_REVERSE_CHARSET): Likewise. (CHARSET_VALID_P): Handle new charsets; eight-bit-control and eight-bit-graphic. (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we encounter an invalid multibyte sequence. (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte sequence is always valid. (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros. (CHAR_STRING): For 8-bit characters, call char_to_string. (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume multibyte sequence is always valid. (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, str_as_unibyte): Extern them. (BCOPY_SHORT): Fix a bug. (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES. (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
* (Qeight_bit_control, Qeight_bit_graphic): NewKenichi Handa2000-05-191-225/+370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables. (SPLIT_CHARACTER_SEQ): This macro deleted. (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid. (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control and eight-bit-graphic. (char_to_string): Likewise. Signal an error for too large character code. (char_printable_p): Return 0 for 8-bit characters. (update_charset_table): Update iso_charset_table only when a final character is non-negative. (find_charset_in_text): Renamed from find_charset_in_str. Arguments and return value changed. Callers changed. (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can be -1 if CHARSET is used only internally. (Fmake_char_internal): Handle new charsets; eight-bit-control and eight-bit-graphic. (Fcharset_after): Simplified. (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR. (char_bytes): Return 2 for chars of the range 0xA0..0xFF. (multibyte_chars_in_text): Simplified by assuming there's no invalid multibyte sequence. (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, str_as_unibyte): New functions. (Fstring): Simpified by assuming that byte combining never happens. (init_charset_once): Initialization for LEADING_CODE_8_BIT_CONTROL. (syms_of_charset): Intern and staticpro Qeight_bit_control and Qeight_bit_graphic. Include them in Vcharset_list. Make charsets eight-bit-control and eight-bit-graphic.
* (CCL_WRITE_CHAR): Be sure to write single byte charactersKenichi Handa2000-05-191-10/+9
| | | | | as is. (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
* (Fmodify_category_entry): Use SPLIT_CHAR, notKenichi Handa2000-05-191-1/+1
| | | | SPLIT_NON_ASCII_CHAR.
* (Fcall_process): Always encode an argument string ifKenichi Handa2000-05-191-28/+27
| | | | | it is multibyte. Setup src_multibyte and dst_multibyte members of process_coding properly.
* (Fbyte_code): If arg BYTESTR is multibyte, convert itKenichi Handa2000-05-191-2/+13
| | | | to unibyte.
* (advance_to_char_boundary): Don't use DEC_POS to find aKenichi Handa2000-05-191-5/+115
| | | | | | apparent char boundary. (Fset_buffer_multibyte): Convert 8-bit characters in the range 0x80..0x9F to/from multibyte form.
* (Fmake_byte_code): If BYTECODE-STRING is multibyte,Kenichi Handa2000-05-191-2/+15
| | | | | convert it to unibyte. (make_string): Use parse_str_as_multibyte, not chars_in_text.
* (fns.o): Depend on charset.h.Kenichi Handa2000-05-191-1/+1
|
* *** empty log message ***Gerd Moellmann2000-05-191-0/+3
|
* (Fbury_buffer): Avoid trouble from burying a killed buffer.Gerd Moellmann2000-05-191-10/+12
|
* *** empty log message ***Gerd Moellmann2000-05-191-0/+13
|
* (Vimages_types): Moved to xdisp.c.Gerd Moellmann2000-05-191-9/+0
| | | | (syms_of_xfns): Move `image-types' to xdisp.c.
* (Vimage_types): Add extern declaration.Gerd Moellmann2000-05-191-0/+1
|
* (Vimage_types): Moved here from xfns.c.Gerd Moellmann2000-05-191-0/+9
| | | | (syms_of_xdisp): Move `image-types' variable here from xfns.c.
* (Vimage_types): Removed.Gerd Moellmann2000-05-191-9/+0
| | | | (syms_of_w32fns): Remove `image-types'.
* (Ffontset_info): ...and another.Dave Love2000-05-181-1/+1
|
* (Ffontset_info): Fix newline in doc.Dave Love2000-05-181-1/+1
|
* *** empty log message ***Kenichi Handa2000-05-172-23/+18
|
* Include "buffer.h".Kenichi Handa2000-05-171-74/+182
| | | | | | | | | | | | (fs_load_font): If the face has fontset, record the face ID in that fontset. (Finternal_char_font): New function. (accumulate_font_info): New function. (Ffontset_info): Rewritten for the new fontset implementation. (syms_of_fontset): Register Vdefault_fontset in the first element of Vfontset_table. Include Vdefault_fontset in Vfontset_alias_alist. Declare `internal-char-font' as a Lisp function.
* (map_char_table): Pay attention to character number ofKenichi Handa2000-05-171-12/+43
| | | | | | charset. Check the validity of charset at the first level. For leaf nodes that has nil value, call C_FUNCTION or FUNCTION with the default value.