1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 12:03:55 -08:00
Commit graph

15719 commits

Author SHA1 Message Date
Dave Love
f264acb0e4 (unexec): Make .got handling not SGI-specific. 2002-09-05 17:07:41 +00:00
Dave Love
aa44444c80 (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. 2002-09-05 17:03:03 +00:00
Dave Love
7f585e7ab8 Use ifdef HAVE_ALLOCA_H', not if HAVE_ALLOCA_H'. 2002-09-05 17:01:55 +00:00
Dave Love
74214d16a7 comment 2002-09-05 17:00:46 +00:00
Dave Love
b11a4ed7f7 (fontset_add): Return Lisp_Object. 2002-09-05 16:59:54 +00:00
Dave Love
cbc3a17a17 (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
type error.
2002-09-05 16:59:44 +00:00
Dave Love
c23cad0bc6 (read_key_sequence): Fix type error. 2002-09-05 16:59:35 +00:00
Dave Love
688e6cf5ba *** empty log message *** 2002-09-03 18:07:51 +00:00
Dave Love
a0b3195199 (charset_ordered_list_tick): Declare extern. 2002-09-03 17:28:19 +00:00
Kenichi Handa
3fd3136672 *** empty log message *** 2002-09-03 04:11:28 +00:00
Kenichi Handa
b7dbcc196d (char_quoted): Use FETCH_CHAR_AS_MULTIBYTE to convert
unibyte chars to multibyte.
(back_comment): Likewise.
(scan_words): Likewise.
(skip_chars): The arg syntaxp is deleted, and the code for
handling syntaxes is moved to skip_syntaxes.  Callers changed.
Fix the case that the multibyteness of STRING and the current
buffer doesn't match.
(skip_syntaxes): New function.
(SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
SINGLE_BYTE_CHAR_P.
(Fforward_comment): Use FETCH_CHAR_AS_MULTIBYTE to convert unibyte
chars to multibyte.
(scan_lists): Likewise.
(Fbackward_prefix_chars): Likewise.
(scan_sexps_forward): Likewise.
2002-09-03 04:10:19 +00:00
Kenichi Handa
93daa011b3 (compile_pattern_1): Don't adjust the multibyteness of
the regexp pattern and the matching target.  Set cp->buf.multibyte
to the multibyteness of the regexp pattern.  Set
cp->but.target_multibyte to the multibyteness of the matching
target.
(wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
FETCH_STRING_CHAR_ADVANCE.
(Freplace_match): Convert unibyte chars to multibyte.
2002-09-03 04:09:59 +00:00
Kenichi Handa
bf2164799a * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
(GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
that is zero, convert an eight-bit char to multibyte.
(MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
non-emacs case.
(PATFETCH): Convert an eight-bit char to multibyte.
(HANDLE_UNIBYTE_RANGE): New macro.
(regex_compile): Setup the compiled pattern for multibyte chars
even if the given regex string is unibyte.  Use PATFETCH_RAW
instead of PATFETCH in many places.  To handle `charset'
specification of unibyte, call HANDLE_UNIBYTE_RANGE.   Use bitmap
only for ASCII chars.
(analyse_first) <exactn>: Simplified because the compiled pattern
is multibyte.
<charset_not>: Setup fastmap from bitmap only for ASCII chars.
<charset>: Use CHAR_LEADING_CODE to get leading codes.
<categoryspec>: If multibyte, setup fastmap only for ASCII chars
here.
(re_compile_fastmap) [emacs]: Call analyse_first with the arg
multibyte always 1.
(re_search_2) In emacs, set the locale variable multibyte to 1,
otherwise to 0.  New local variable target_multibyte.  Check it
to decide the multibyteness of STR1 and STR2.  If
target_multibyte is zero, convert unibyte chars to multibyte
before translating and checking fastmap.
(TARGET_CHAR_AND_LENGTH): New macro.
(re_match_2_internal): In emacs, set the locale variable multibyte
to 1, otherwise to 0.  New local variable target_multibyte.  Check
it to decide the multibyteness of STR1 and STR2.  Use
TARGET_CHAR_AND_LENGTH to fetch a character from D.
<charset, charset_not>: If multibyte is nonzero, check fastmap
only for ASCII chars.   Call bcmp_translate with
target_multibyte, not with multibyte.
<begline>: Declare the local variable C as `unsigned'.
(bcmp_translate): Change the last arg name to target_multibyte.
2002-09-03 04:09:40 +00:00
Kenichi Handa
66f089b275 (struct re_pattern_buffer): New member target_multibyte. 2002-09-03 04:09:06 +00:00
Kenichi Handa
d6f0c8e67f (Fminibuffer_complete_word): Use the macro
FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
2002-09-03 04:08:49 +00:00
Kenichi Handa
b9dbd42887 (unibyte_char_to_multibyte): Extern deleted. 2002-09-03 04:08:33 +00:00
Kenichi Handa
9ad8bfb0a0 (internal_self_insert): In a multibyte buffer, insert C
as is without converting it to unibyte.  In a unibyte buffer,
convert C to multibyte before checking the syntax.
2002-09-03 04:08:14 +00:00
Kenichi Handa
8d35924790 (casify_object): Fix previous change. 2002-09-03 04:07:54 +00:00
Kenichi Handa
14e3d52396 (Fset_unibyte_charset): If the dimension of CHARSET is
not 1, singals an error.  Update the elements of
unibyte_to_multibyte_table.
(init_charset_once): Initialize unibyte_to_multibyte_table.
(syms_of_charset): Define the charset `iso-8859-1'.
2002-09-03 04:07:33 +00:00
Kenichi Handa
b672c5ae18 (unibyte_to_multibyte_table): New variable.
(unibyte_char_to_multibyte): Move to character.h and defined as
macro.
(multibyte_char_to_unibyte): If C is an eight-bit character,
convert it to the corresponding byte value.
2002-09-03 04:07:11 +00:00
Kenichi Handa
43c4748349 (LEADING_CODE_LATIN_1_MIN)
(LEADING_CODE_LATIN_1_MAX): New macros.
(unibyte_to_multibyte_table): Extern it.
(unibyte_char_to_multibyte): New macro.
(MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
(CHAR_LEADING_CODE): New macro.
(FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
2002-09-03 04:06:54 +00:00
Kenichi Handa
9281d07797 (Fbyte_code): Convert a unibyte character to multibyte if necessary. 2002-09-03 04:06:33 +00:00
Kenichi Handa
1464b3d8a8 (Fexpand_abbrev): Convert a unibyte character to
multibyte if necessary.
2002-09-03 04:06:07 +00:00
Kenichi Handa
0ba42da6ed (enum lface_attribute_index): New member LFACE_FONTSET_INDEX. 2002-08-23 02:27:29 +00:00
Kenichi Handa
763bc839f1 (QCfontset): New variable.
(LFACE_FONTSET): New macro.
(check_lface_attrs): Check also LFACE_FONTSET_INDEX.
(set_lface_from_font_name): Setup LFACE_FONTSET (lface).
(Finternal_set_lisp_face_attribute): Handle QCfontset.
(Finternal_get_lisp_face_attribute): Likewise.
(lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
check also LFACE_FONTSET_INDEX.
(face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
attrs[LFACE_FONT_INDEX].
(syms_of_xfaces): Intern and staticpro QCfontset.
2002-08-23 02:26:44 +00:00
Kenichi Handa
680d4b87f3 (base64_encode_1): Handle eight-bit chars correctly. 2002-08-22 01:18:39 +00:00
Kenichi Handa
834c59713a *** empty log message *** 2002-08-22 00:07:49 +00:00
Kenichi Handa
372de96a62 (insert_from_gap): Make it work even if PT != GTP. 2002-08-21 13:07:13 +00:00
Kenichi Handa
28f67a95f7 (coding_set_destination): Fix coding->destination for
the case converting a region.
(encode_coding_utf_8): Encode eight-bit chars as single byte.
(encode_coding_object): Fix coding->dst_pos and
coding->dst_pos_byte for the case converting a region.
2002-08-21 12:53:56 +00:00
Kenichi Handa
da13f28e2c *** empty log message *** 2002-08-21 02:30:11 +00:00
Kenichi Handa
5a38b8c5ed (base64_decode_1): Insert eight-bit chars correctly. 2002-08-21 02:28:21 +00:00
Kenichi Handa
1106ea2b1a (BYTE8_STRING): New macro. 2002-08-21 02:27:07 +00:00
Kenichi Handa
b402f819e5 *** empty log message *** 2002-08-20 13:12:32 +00:00
Kenichi Handa
48ef988f74 (Finsert_byte): New function.
(syms_of_editfns): Defsubr it.
2002-08-20 13:05:44 +00:00
Kenichi Handa
eeb7c1552d *** empty log message *** 2002-08-20 11:25:27 +00:00
Kenichi Handa
405b0b5ad1 (set_canon, set_identity, shuffle): Simplified. 2002-08-20 11:23:38 +00:00
Kenichi Handa
790ac1c79d (get_next_display_element): Don't display unibyte 8-bit
characters by octal form.
2002-08-20 11:13:34 +00:00
Kenichi Handa
67dde6602c (syms_of_character): Setup Vprintable_chars. 2002-08-20 11:11:19 +00:00
Kenichi Handa
5b89f10917 (Freplace_match): Fix previous change. 2002-08-20 08:34:51 +00:00
Kenichi Handa
096a353dd1 (Freplace_match): Fix for the unibyte case. 2002-08-20 08:32:34 +00:00
Kenichi Handa
16747e037d (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
of direct code 0x3ffff.
2002-08-20 08:20:31 +00:00
Kenichi Handa
e5112ecb72 (Fchar_equal): Fix for the unibyte case. 2002-08-20 07:56:43 +00:00
Kenichi Handa
6d2b9b27d8 (Fexpand_abbrev): Fix for the multibyte case. 2002-08-20 07:21:58 +00:00
Kenichi Handa
0396028c43 *** empty log message *** 2002-08-20 04:00:27 +00:00
Kenichi Handa
8973478b03 (_fetch_multibyte_char_len): This variable deleted. 2002-08-20 03:59:51 +00:00
Kenichi Handa
feb3066c15 (_fetch_multibyte_char_len): Extern deleted.
(FETCH_MULTIBYTE_CHAR): Don't use _fetch_multibyte_char_len.
(BUF_FETCH_MULTIBYTE_CHAR): Likewise.
(FETCH_CHAR_AS_MULTIBYTE): New macro.
2002-08-20 03:59:29 +00:00
Kenichi Handa
3e41107450 (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros. 2002-08-20 03:59:11 +00:00
Kenichi Handa
2422e50a51 (casify_object): Simplified. Handle the case that
the case conversion change the byte length.
(casify_region): Likewise
2002-08-20 03:58:53 +00:00
Kenichi Handa
49aabfbde6 *** empty log message *** 2002-08-19 12:14:25 +00:00
Kenichi Handa
927f12daa2 (safe_to_load_p): Fix the logic. 2002-08-19 11:34:28 +00:00