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

15753 commits

Author SHA1 Message Date
Dave Love
72fe130161 (decode_coding_utf_8): Treat surrogates as invalid. 2002-10-09 22:00:36 +00:00
Kenichi Handa
c3c8dc5222 *** empty log message *** 2002-10-09 06:14:14 +00:00
Kenichi Handa
e3d8eb8c66 (char_string): Renamed from
char_string_with_unification.  Pay attention to
CHAR_MODIFIER_MASK.
(string_char): Renamed from string_char.
2002-10-09 05:24:48 +00:00
Kenichi Handa
eb41da4cb9 (CHAR_STRING): Call char_string if C is greater than
MAX_3_BYTE_CHAR.
(CHAR_STRING_ADVANCE): Likewise.
(STRING_CHAR): Call string_char instead of
string_char_with_unification.
(STRING_CHAR_AND_LENGTH): Likewise.
(STRING_CHAR_ADVANCE): Likewise.
2002-10-09 05:16:05 +00:00
Kenichi Handa
ba5e343cad (re_search_2): Fix for the case of unibyte buffer. 2002-10-07 12:59:21 +00:00
Kenichi Handa
c01bb36f11 (push_key_description): Pay attention to force_multibyte. 2002-10-07 12:57:40 +00:00
Dave Love
3d775be9bf *** empty log message *** 2002-10-06 21:18:39 +00:00
Dave Love
c603ec3b19 Copyright up-date. 2002-10-06 21:16:50 +00:00
Dave Love
5998373a0c Comment fix. 2002-10-06 21:16:08 +00:00
Dave Love
7acf89e638 (define_charset_internal): Rename `supprementary'. 2002-10-06 21:15:08 +00:00
Dave Love
0aeb059ac4 *** empty log message *** 2002-10-06 16:55:31 +00:00
Dave Love
979d7ef282 (lisp, shortlisp): Remove latin-N. 2002-10-06 16:55:14 +00:00
Dave Love
2e801687ec (use_xim): Initialize.
(xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
(x_term_init): Maybe set use_xim.
2002-10-06 13:29:21 +00:00
Dave Love
75d0333328 (use_xim) [HAVE_X_I18N]: Declare. 2002-10-05 23:19:04 +00:00
Dave Love
68352d8b7f *** empty log message *** 2002-10-05 19:23:48 +00:00
Dave Love
af1b7625c3 (x_window, x_window): Use use_xim. 2002-10-05 14:38:51 +00:00
Kenichi Handa
af1b4a5310 *** empty log message *** 2002-10-01 01:33:41 +00:00
Kenichi Handa
f5f7578b06 (search_buffer): Fix case-fold-search of multibyte
characters.
(boyer_moore): Rename the last argument to char_high_bits.
2002-10-01 01:30:13 +00:00
Kenichi Handa
57d83313c1 *** empty log message *** 2002-09-27 04:54:24 +00:00
Kenichi Handa
a92bf2cbf0 (x_new_fontset): If FONTSETNAME specifies the default
fontset, return Qt.
2002-09-27 04:51:34 +00:00
Kenichi Handa
25b1546d72 (set_lface_from_font_name): Reject the default fontset.
(Finternal_set_lisp_face_attribute): Use signal_error for the
error of invalid fontset.
2002-09-27 04:50:58 +00:00
Kenichi Handa
75f8dd6ae2 (x_set_font): Change the error message of the case that
x_new_fontset returns Qt.
2002-09-27 04:50:23 +00:00
Kenichi Handa
587cb9a7fc (display_string): Fix for the case of zero width glyph. 2002-09-27 04:49:47 +00:00
Kenichi Handa
510b6af4be (re_search_2): Fix previous change. 2002-09-19 00:40:09 +00:00
Kenichi Handa
89233d404a *** empty log message *** 2002-09-19 00:39:45 +00:00
Kenichi Handa
ade8ee9eac *** empty log message *** 2002-09-18 12:16:12 +00:00
Kenichi Handa
8c6e735bfb (skip_syntaxes): Fix previous change. 2002-09-18 12:14:36 +00:00
Kenichi Handa
1498173f7e (skip_syntaxes): Fix previous change. 2002-09-18 11:59:36 +00:00
Kenichi Handa
bc796a59e2 (skip_chars): Fix previous change.
(skip_syntaxes): Fix previous change.
2002-09-13 11:22:21 +00:00
Dave Love
f4e0b4349c *** empty log message *** 2002-09-06 17:41:19 +00:00
Dave Love
83f814e24e *** empty log message *** 2002-09-05 17:56:01 +00:00
Dave Love
f96e75633f Removed (now auto-generated). 2002-09-05 17:55:47 +00:00
Dave Love
d336654ed4 *** empty log message *** 2002-09-05 17:44:50 +00:00
Dave Love
355036dd67 Fix last change. 2002-09-05 17:11:25 +00:00
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