diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /src/composite.c | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/composite.c b/src/composite.c index de9775d18f5..d402d5ad0c4 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -967,7 +967,6 @@ autocmp_chars (Lisp_Object rule, EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT | |||
| 967 | } | 967 | } |
| 968 | 968 | ||
| 969 | static Lisp_Object _work_val; | 969 | static Lisp_Object _work_val; |
| 970 | static int _work_char; | ||
| 971 | 970 | ||
| 972 | /* 1 iff the character C is composable. Characters of general | 971 | /* 1 iff the character C is composable. Characters of general |
| 973 | category Z? or C? are not composable except for ZWNJ and ZWJ. */ | 972 | category Z? or C? are not composable except for ZWNJ and ZWJ. */ |
| @@ -976,9 +975,8 @@ static int _work_char; | |||
| 976 | ((C) > ' ' \ | 975 | ((C) > ' ' \ |
| 977 | && ((C) == 0x200C || (C) == 0x200D \ | 976 | && ((C) == 0x200C || (C) == 0x200D \ |
| 978 | || (_work_val = CHAR_TABLE_REF (Vunicode_category_table, (C)), \ | 977 | || (_work_val = CHAR_TABLE_REF (Vunicode_category_table, (C)), \ |
| 979 | (SYMBOLP (_work_val) \ | 978 | (INTEGERP (_work_val) \ |
| 980 | && (_work_char = SDATA (SYMBOL_NAME (_work_val))[0]) != 'C' \ | 979 | && (XINT (_work_val) <= UNICODE_CATEGORY_So))))) |
| 981 | && _work_char != 'Z')))) | ||
| 982 | 980 | ||
| 983 | /* Update cmp_it->stop_pos to the next position after CHARPOS (and | 981 | /* Update cmp_it->stop_pos to the next position after CHARPOS (and |
| 984 | BYTEPOS) where character composition may happen. If BYTEPOS is | 982 | BYTEPOS) where character composition may happen. If BYTEPOS is |
| @@ -1027,6 +1025,7 @@ composition_compute_stop_pos (struct composition_it *cmp_it, EMACS_INT charpos, | |||
| 1027 | /* FIXME: Bidi is not yet handled well in static composition. */ | 1025 | /* FIXME: Bidi is not yet handled well in static composition. */ |
| 1028 | if (charpos < endpos | 1026 | if (charpos < endpos |
| 1029 | && find_composition (charpos, endpos, &start, &end, &prop, string) | 1027 | && find_composition (charpos, endpos, &start, &end, &prop, string) |
| 1028 | && start >= charpos | ||
| 1030 | && COMPOSITION_VALID_P (start, end, prop)) | 1029 | && COMPOSITION_VALID_P (start, end, prop)) |
| 1031 | { | 1030 | { |
| 1032 | cmp_it->stop_pos = endpos = start; | 1031 | cmp_it->stop_pos = endpos = start; |