diff options
| author | Kenichi Handa | 2009-11-13 11:18:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-11-13 11:18:02 +0000 |
| commit | 8a605fe839a119820e7e346bf860a9245872fa67 (patch) | |
| tree | 92dfc31f6acad3e40142b4d62aa2184b75986062 /src | |
| parent | 14bd267de01f53607514a8e5b8cf4a7e8d351d9b (diff) | |
| download | emacs-8a605fe839a119820e7e346bf860a9245872fa67.tar.gz emacs-8a605fe839a119820e7e346bf860a9245872fa67.zip | |
(word_boundary_p): Adjusted for the change of the
semantics of Vword_combining_categories.
(Vword_combining_categories): Describe the slight change of the
semantics.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/category.c | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 35296685a65..9bc55ece62a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-11-13 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * category.c (word_boundary_p): Adjusted for the change of the | ||
| 4 | semantics of Vword_combining_categories. | ||
| 5 | (Vword_combining_categories): Describe the slight change of the | ||
| 6 | semantics. | ||
| 7 | |||
| 1 | 2009-11-13 Eli Zaretskii <eliz@gnu.org> | 8 | 2009-11-13 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM. | 10 | * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM. |
diff --git a/src/category.c b/src/category.c index 7d7553411e6..702bcee9ce5 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -453,9 +453,11 @@ word_boundary_p (c1, c2) | |||
| 453 | if (CONSP (elt) | 453 | if (CONSP (elt) |
| 454 | && (NILP (XCAR (elt)) | 454 | && (NILP (XCAR (elt)) |
| 455 | || (CATEGORYP (XCAR (elt)) | 455 | || (CATEGORYP (XCAR (elt)) |
| 456 | && CATEGORY_MEMBER (XFASTINT (XCAR (elt)), category_set1))) | 456 | && CATEGORY_MEMBER (XFASTINT (XCAR (elt)), category_set1) |
| 457 | && ! CATEGORY_MEMBER (XFASTINT (XCAR (elt)), category_set2))) | ||
| 457 | && (NILP (XCDR (elt)) | 458 | && (NILP (XCDR (elt)) |
| 458 | || (CATEGORYP (XCDR (elt)) | 459 | || (CATEGORYP (XCDR (elt)) |
| 460 | && ! CATEGORY_MEMBER (XFASTINT (XCDR (elt)), category_set1) | ||
| 459 | && CATEGORY_MEMBER (XFASTINT (XCDR (elt)), category_set2)))) | 461 | && CATEGORY_MEMBER (XFASTINT (XCDR (elt)), category_set2)))) |
| 460 | return !default_result; | 462 | return !default_result; |
| 461 | } | 463 | } |
| @@ -524,8 +526,9 @@ Emacs finds a word boundary between characters of the same script | |||
| 524 | if they have categories matching some element of this list. | 526 | if they have categories matching some element of this list. |
| 525 | 527 | ||
| 526 | More precisely, if an element of this list is a cons of category CAT1 | 528 | More precisely, if an element of this list is a cons of category CAT1 |
| 527 | and CAT2, and a multibyte character C1 which has CAT1 is followed by | 529 | and CAT2, and a multibyte character C1 which has CAT1 but not CAT2 is |
| 528 | C2 which has CAT2, there's a word boundary between C1 and C2. | 530 | followed by C2 which has CAT2 but not CAT1, there's a word boundary |
| 531 | between C1 and C2. | ||
| 529 | 532 | ||
| 530 | For instance, to tell that there's a word boundary between Hiragana | 533 | For instance, to tell that there's a word boundary between Hiragana |
| 531 | and Katakana (both are in the same script `kana'), | 534 | and Katakana (both are in the same script `kana'), |