Mercurial > emacs
comparison src/category.c @ 23755:63628f8fe648
(word_boundary_p): If C1 or C2 are composite
characters, test their first components.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 24 Nov 1998 03:52:08 +0000 |
parents | 6f3b920860e5 |
children | 0a7261c1d487 |
comparison
equal
deleted
inserted
replaced
23754:53a4f2e0fccc | 23755:63628f8fe648 |
---|---|
565 int c1, c2; | 565 int c1, c2; |
566 { | 566 { |
567 Lisp_Object category_set1, category_set2; | 567 Lisp_Object category_set1, category_set2; |
568 Lisp_Object tail; | 568 Lisp_Object tail; |
569 int default_result; | 569 int default_result; |
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); | |
570 | 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; |
574 default_result = 0; | 579 default_result = 0; |