aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-11-24 03:52:08 +0000
committerKenichi Handa1998-11-24 03:52:08 +0000
commit9a64297c6762d5950c453914e7f67347d79b0bb0 (patch)
treedcf0e560dafb08566b0285b83ebbd12ec9fe6221 /src
parent45cf60ae1a7d8f39d0f215ab615124cbb17f49e2 (diff)
downloademacs-9a64297c6762d5950c453914e7f67347d79b0bb0.tar.gz
emacs-9a64297c6762d5950c453914e7f67347d79b0bb0.zip
(word_boundary_p): If C1 or C2 are composite
characters, test their first components.
Diffstat (limited to 'src')
-rw-r--r--src/category.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/category.c b/src/category.c
index d858fd1e36d..734634bd6aa 100644
--- a/src/category.c
+++ b/src/category.c
@@ -568,6 +568,11 @@ word_boundary_p (c1, c2)
568 Lisp_Object tail; 568 Lisp_Object tail;
569 int default_result; 569 int default_result;
570 570
571 if (COMPOSITE_CHAR_P (c1))
572 c1 = cmpchar_component (c1, 0, 1);
573 if (COMPOSITE_CHAR_P (c2))
574 c2 = cmpchar_component (c2, 0, 1);
575
571 if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2)) 576 if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2))
572 { 577 {
573 tail = Vword_separating_categories; 578 tail = Vword_separating_categories;